lykahb / groundhog

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
http://hackage.haskell.org/package/groundhog
176 stars 39 forks source link

Build failure with GHC 8.2 #69

Closed snoyberg closed 6 years ago

snoyberg commented 7 years ago
[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)
    |     
lykahb commented 7 years ago

@snoyberg fixed with https://github.com/lykahb/groundhog/commit/090f9fd59d92a8fde99522ad7609bbbefe890c07. Thank you for the report!