haskell-distributed / distributed-process

Cloud Haskell core libraries
http://haskell-distributed.github.io
711 stars 96 forks source link

Build failure with ghc-9.2.4 `Expecting one more argument to ‘TyVarBndr’` #366

Closed TristanCacqueray closed 1 year ago

TristanCacqueray commented 2 years ago

It seems like distributed-process is not buildable with ghc-9.2 because of this error:

src/Control/Distributed/Process/Internal/Closure/TH.hs:225:18: error:
    • Expecting one more argument to ‘TyVarBndr’
      Expected a type, but ‘TyVarBndr’ has kind ‘* -> *’
    • In the type signature:
        monomorphize :: [TyVarBndr] -> Type -> Q Type
    |
225 | monomorphize :: [TyVarBndr] -> Type -> Q Type
    |                  ^^^^^^^^^

Only this module is affected, is there some CPP magic we can use to fix that error?

matt2718 commented 2 years ago

Submitted a fix: https://github.com/haskell-distributed/distributed-process/pull/367

davidsd commented 1 year ago

FIxed with https://github.com/haskell-distributed/distributed-process/pull/370