Created
September 14, 2011 19:37
-
-
Save Tarrasch/1217552 to your computer and use it in GitHub Desktop.
explosive error message
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 characters
Handler/Posts.hs:45:22: | |
Couldn't match type `PostGeneric' with `Maybe' | |
Expected type: YesodDB | |
Dtek | |
Dtek | |
(Maybe | |
(Key | |
Database.Persist.GenericSql.Raw.SqlPersist (PostGeneric backend0), | |
Maybe Post)) | |
Actual type: Database.Persist.GenericSql.Raw.SqlPersist | |
(GGHandler Dtek Dtek IO) | |
(Maybe | |
(Key | |
Database.Persist.GenericSql.Raw.SqlPersist (PostGeneric backend0), | |
PostGeneric backend0)) | |
In the return type of a call of `selectFirst' | |
In the second argument of `($)', namely | |
`selectFirst [PostSlug ==. slug] []' | |
Handler/Posts.hs:45:22: | |
Kind incompatibility when matching types: | |
backend0 :: (* -> *) -> * -> * | |
Post :: * | |
Expected type: YesodDB | |
Dtek | |
Dtek | |
(Maybe | |
(Key | |
Database.Persist.GenericSql.Raw.SqlPersist (PostGeneric backend0), | |
Maybe Post)) | |
Actual type: Database.Persist.GenericSql.Raw.SqlPersist | |
(GGHandler Dtek Dtek IO) | |
(Maybe | |
(Key | |
Database.Persist.GenericSql.Raw.SqlPersist (PostGeneric backend0), | |
PostGeneric backend0)) | |
In the return type of a call of `selectFirst' | |
In the second argument of `($)', namely | |
`selectFirst [PostSlug ==. slug] []' | |
Starting development server... | |
dist/devel.hs:3:1: | |
Failed to load interface for `Application': | |
it is not a module in the current program, or in any known package. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment