Build error
svoynow opened this issue · 1 comments
svoynow commented
~/projects/servant-persistent (master●)$ stack build
.....
/Users/xyz/projects/servant-persistent/app/Main.hs:24:16:
Couldn't match type ‘Control.Monad.Logger.NoLoggingT
(resourcet-1.1.7.4:Control.Monad.Trans.Resource.Internal.ResourceT
IO)’
with ‘IO’
Expected type: persistent-2.2.4.1:Database.Persist.Sql.Types.SqlPersistT
IO ()
Actual type: persistent-2.2.4.1:Database.Persist.Sql.Types.SqlPersistM
()
In the first argument of ‘runSqlPool’, namely ‘doMigrations’
In a stmt of a 'do' block: runSqlPool doMigrations pool
(Mac OS, GHC 7.10.3)
Any clues?
parsonsmatt commented
Huh, I thought SqlPersistM
was an alias for SqlPersistT IO
, not SqlPersistT (NoLoggingT (ResourceT IO))
. It's fixed now.