我已經把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