Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/haskell/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Haskell Esqueleto简单类型错误_Haskell_Yesod_Esqueleto - Fatal编程技术网

Haskell Esqueleto简单类型错误

Haskell Esqueleto简单类型错误,haskell,yesod,esqueleto,Haskell,Yesod,Esqueleto,我从右边的查询中得到一个类型错误。 查询应该选择一个名称等于“Miniota”的高尔夫球场, 查询: 我怀疑该错误与我错误地使用E.val 我现在没有在widget文件中实际使用gcs。非常感谢您的帮助 我不确定,但您可能需要使用: ... E.==. E.val ... 由于确切的问题取决于您的导入语句,因此最好提供一个指向完整独立文件的链接,以演示问题。谢谢,就是这样!我忘了Persistent的=.和Esqueleto的=.是不同的。 Handler/Home.hs:713:49:

我从右边的查询中得到一个类型错误。
查询应该选择一个名称等于“Miniota”的
高尔夫球场

查询:

我怀疑该错误与我错误地使用
E.val

我现在没有在widget文件中实际使用gcs。非常感谢您的帮助

我不确定,但您可能需要使用:

... E.==. E.val ...

由于确切的问题取决于您的导入语句,因此最好提供一个指向完整独立文件的链接,以演示问题。

谢谢,就是这样!我忘了Persistent的
=.
和Esqueleto的
=.
是不同的。
Handler/Home.hs:713:49:
    Couldn't match expected type `Text' with actual type `E.Value typ0'
    Expected type: E.Value Text
      Actual type: E.Value (E.Value typ0)
    In the return type of a call of `E.val'
    In the second argument of `(==.)', namely `E.val "Miniota"'
... E.==. E.val ...