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