MercuryTechnologies/moat

GHC 9 compatibility

Closed this issue · 0 comments

When building moat with GHC 9, I get the following error:

moat                             > [3 of 6] Compiling Moat.Pretty.Kotlin
moat                             > [4 of 6] Compiling Moat.Class
moat                             > [5 of 6] Compiling Moat
moat                             >
moat                             > /tmp/stack-46a8b3125826381c/moat-0.1/src/Moat.hs:322:21: error:
moat                             >     • Expecting one more argument to ‘TyVarBndr’
moat                             >       Expected a type, but ‘TyVarBndr’ has kind ‘* -> *’
moat                             >     • In the type ‘[TyVarBndr]’
moat                             >       In the definition of data constructor ‘NewtypeInfo’
moat                             >       In the data declaration for ‘NewtypeInfo’
moat                             >     |
moat                             > 322 |     newtypeVars :: [TyVarBndr],
moat                             >     |                     ^^^^^^^^^