【发布时间】:2013-11-30 22:38:59
【问题描述】:
在 yesod 中,我有 etat.hamlet,我需要创建一个带有可变会话的小部件,以便将它与其他文件 .hamlet 放在一起
我的代码是这样的,但我收到一个错误
etatwidget = do
sess <- getSession
let mence = unpack $ case Map.lookup "ence" sess of
Just a -> a
Nothing -> "Nothing"
$(widgetFile "etat")
错误:
Handler\Home.hs:585:5: parse error on input `$('
Build failure, pausing...
【问题讨论】: