Created
March 21, 2015 16:12
-
-
Save oleander/12b58c501871d64d1153 to your computer and use it in GitHub Desktop.
Revisions
-
oleander created this gist
Mar 21, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,16 @@ Handler/Comment.hs:25:29: Couldn't match type `Text' with `Entity Post' Expected type: Field (HandlerT App IO) (Entity Post) Actual type: Field (HandlerT App IO) Text In the first argument of `areq', namely `textField' In the second argument of `(<$>)', namely `areq textField "Post" (Just post)' In the second argument of `(<*>)', namely `(entityKey <$> areq textField "Post" (Just post))' Handler/Comment.hs:25:52: Couldn't match expected type `Entity Post' with actual type `Post' In the first argument of `Just', namely `post' In the third argument of `areq', namely `(Just post)' In the second argument of `(<$>)', namely `areq textField "Post" (Just post)'