You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like yesod-text-markdown isn't able to deserialize what was inserted; fromPersistValue is passed a PersistByteString when yesod-text-markdown requires a PersistText. This can be reproduced like so :
Create a new scaffolded MySQL project (I used yesod-bin 1.4.13.3)
Add the markdown and yesod-text-markdown packages to build-depends in the Cabal file (I used the versions from LTS Haskell 2.17).
It looks like yesod-text-markdown isn't able to deserialize what was inserted;
fromPersistValue
is passed aPersistByteString
when yesod-text-markdown requires aPersistText
. This can be reproduced like so :Create a new scaffolded MySQL project (I used yesod-bin 1.4.13.3)
Add the markdown and yesod-text-markdown packages to build-depends in the Cabal file (I used the versions from LTS Haskell 2.17).
Add these imports to Model.hs:
Add this model to config/models:
Start a GHCi session and run the following code:
(I think this can be reproduced easily in a script/test; I'll try to write one up)
These two StackOverflow questions reported the issue:
This might be a bug in Persistent; I'm still investigating.
The text was updated successfully, but these errors were encountered: