Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.14.6.3: No instance for ‘NFData Text’ arising from a use of ‘rnf’ #1557

Open
Miezhiko opened this issue Oct 11, 2024 · 0 comments
Open

Comments

@Miezhiko
Copy link

[ 3 of 46] Compiling Database.Persist.PersistValue ( Database/Persist/PersistValue.hs, dist/build/Database/Persist/PersistValue.o, dist/build/Database/Persist
/PersistValue.dyn_o )

Database/Persist/PersistValue.hs:78:24: error: [GHC-39999]
• No instance for ‘NFData Text’ arising from a use of ‘rnf’
• In the expression: rnf txt
In a case alternative: PersistText txt -> rnf txt
In the expression:
case val of
PersistText txt -> rnf txt
PersistByteString bs -> rnf bs
PersistInt64 i -> rnf i
PersistDouble d -> rnf d
PersistRational q -> rnf q
PersistBool b -> rnf b
PersistDay d -> rnf d
PersistTimeOfDay t -> rnf t
PersistUTCTime t -> rnf t
PersistNull -> ()
PersistList vals -> rnf vals
PersistMap vals -> rnf vals
PersistObjectId bs -> rnf bs
PersistArray vals -> rnf vals
PersistLiteral_ ty bs -> ty seq rnf bs
|
78 | PersistText txt -> rnf txt
| ^^^

GHC 9.8.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant