I have a yesod project that used to be compilable. Now when I migrate it to latest yesod, it failed compiling.
Handler/FetchProcessPathRollup.hs:27:30:
No instance for (Data.CSV.Conduit.CSV
Data.ByteString.Internal.ByteString
(containers-0.5.0.0:Data.Map.Base.Map a0 Text))
arising from a use of `intoCSV'
The type variable `a0' is ambiguous
Possible fix: add a type signature that fixes these type variable(s)
Note: there is a potential instance available:
instance (Data.CSV.Conduit.CSV
s (csv-conduit-0.5.1:Data.CSV.Conduit.Types.Row s'),
Ord s', Data.String.IsString s) =>
Data.CSV.Conduit.CSV s (MapRow s')
-- Defined in `Data.CSV.Conduit'
Possible fix:
add an instance declaration for
(Data.CSV.Conduit.CSV
Data.ByteString.Internal.ByteString
(containers-0.5.0.0:Data.Map.Base.Map a0 Text))
In the first argument of `(=$=)', namely `intoCSV defCSVSettings'
In the second argument of `($$+-)', namely
`(intoCSV defCSVSettings
=$= parsePPR (zonedTimeToUTC day) k =$ sinkPersist)'
In a stmt of a 'do' block:
responseBody src
$$+-
(intoCSV defCSVSettings
=$= parsePPR (zonedTimeToUTC day) k =$ sinkPersist)
Handler/FetchProcessPathRollup.hs:27:57:
No instance for (PersistUnique
(Data.Conduit.Internal.ConduitM
(containers-0.5.0.0:Data.Map.Base.Map a0 Text)
ProcessPathRollup
(ResourceT
(Database.Persist.GenericSql.Raw.SqlPersist (GHandler App App)))))
arising from a use of `parsePPR'
Possible fix:
add an instance declaration for
(PersistUnique
(Data.Conduit.Internal.ConduitM
(containers-0.5.0.0:Data.Map.Base.Map a0 Text)
ProcessPathRollup
(ResourceT
(Database.Persist.GenericSql.Raw.SqlPersist (GHandler App App)))))
In the first argument of `(=$)', namely
`parsePPR (zonedTimeToUTC day) k'
In the second argument of `(=$=)', namely
`parsePPR (zonedTimeToUTC day) k =$ sinkPersist'
In the second argument of `($$+-)', namely
`(intoCSV defCSVSettings
=$= parsePPR (zonedTimeToUTC day) k =$ sinkPersist)'