Skip to content

Instantly share code, notes, and snippets.

@Tarrasch
Created September 14, 2011 19:37
Show Gist options
  • Save Tarrasch/1217552 to your computer and use it in GitHub Desktop.
Save Tarrasch/1217552 to your computer and use it in GitHub Desktop.
explosive error message
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