well-typed / cborg

Binary serialisation in the CBOR format
https://hackage.haskell.org/package/cborg
191 stars 86 forks source link

MonadFail causes benchmarks to fail. #209

Closed AndreasPK closed 5 years ago

AndreasPK commented 5 years ago

When building benchmarks:

bench\versus\Macro\Load.hs:154:9: error:
    ‘fail’ is not a (visible) method of class ‘Monad’
    |
154 |         fail s = ParseFailed (FromString s Nothing)
    |         ^^^^
sjakobi commented 5 years ago

217 probably fixed this.

thoughtpolice commented 5 years ago

Yes, without version info on the compiler it's harder for me to see what constraints would have resulted in a failure. I'm willing to bet @sjakobi is correct that his changes fix it, though. Closing, but feel free to re-open!