This library maps datatypes to a relational model, in a way similar to what ORM libraries do in OOP. See the tutorial https://www.schoolofhaskell.com/user/lykahb/groundhog for introduction
[1 of 1] Compiling Database.Groundhog.Inspector ( Database/Groundhog/Inspector.hs, dist/build/Database/Groundhog/Inspector.o )
Database/Groundhog/Inspector.hs:417:41: error:
• Couldn't match type ‘Type’ with ‘DerivClause’
Expected type: [DerivClause]
Actual type: [Type]
• In the sixth argument of ‘DataD’, namely ‘(map ConT derives)’
In the expression:
DataD cxt name types Nothing constrs (map ConT derives)
In an equation for ‘dataD'’:
dataD' cxt name types constrs derives
= DataD cxt name types Nothing constrs (map ConT derives)
|
417 | DataD cxt name types Nothing constrs (map ConT derives)
|