【发布时间】:2015-08-13 12:22:38
【问题描述】:
This 帖子展示了如何直接将 yesod 与 blaze-html 一起使用,但在此帖子之后 ghc 抱怨说:
No instance for (ToWidget App (t0 -> H.Html))
arising from a use of ‘toWidget’
In the expression: toWidget
In a stmt of a 'do' block: toWidget $ \ render -> do { H.p "" }
In the second argument of ‘($)’, namely
‘do { toWidget $ \ render -> do { ... } }’
我检查了所需 yesod.pure 模块的来源,但发现 Towidget 没有这样的实例..
【问题讨论】:
标签: haskell yesod blaze-html