This帖子展示了如何直接使用yes与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没有这样的实例..