clash-lang / ghc-typelits-extra

Extra type-level operations on GHC.TypeLits.Nat and a custom solver
Other
16 stars 9 forks source link

Build failure due to change in ghc-typelits-natnormalise #17

Closed Taneb closed 5 years ago

Taneb commented 5 years ago

The isNatural function in GHC.TypeLits.Normalise.Unify from ghc-typelits-natnormalise was changed in https://github.com/clash-lang/ghc-typelits-natnormalise/commit/45080a9f50b040178e145c0e9b489c26c17a6d52 to take a Bool parameter to assert whether naturals are constant. Its usages in the mergeMin and mergeMax functions in GHC.TypeLits.Extra.Solver.Operations have not been updated accordingly.

To fix: add either False or True to these calls as the first parameter.

martijnbastiaan commented 5 years ago

Fixed in https://github.com/clash-lang/ghc-typelits-extra/commit/145a1a524d9ee163887e7da2edc11cd2ff977ab8