我已经把Import.hs import qualified Database.Esqueleto as E 但在我处理程序文件在那里我有 import Import 但导入型呢找不到E module Handler.MyProfile where
import Import
getMyProfileR :: Handler Html
getMyProfileR = do
n
当我尝试: foos <- (return $ map (encode .> cs .> jsonToFoo body) `catch` r400
我有以下类型的错误: /path/to/File.hs:47:78: error:
• Couldn't match type ‘(->) e0’ with ‘IO’
arising from a functional dep