7
私はYesodのハンドラから最も単純なJSON応答を作成しようとしていますが、実際には愚かなエラー(明らかに)があります。私のハンドラのコードはこれです:私はあまりにも、このいずれかで捕まったyesodハンドラからJSONを返します
Handler/Echo.hs:12:10:
Couldn't match expected type `RepJson' with actual type `Value'
In the first argument of `return', namely `json'
In a stmt of a 'do' block: return json
In the expression:
do { let json = object $ ...;
return json }
Build failure, pausing...
Yesod 1.2の変更点については、このドキュメント(https://github.com/yesodweb/yesod/wiki/Detailed-change-list)を確認することをお勧めします。 – thoferon