GaloisInc / json

Haskell JSON library
Other
27 stars 10 forks source link

Incorrect `fail` method is called in GHC 8.6 causing JSON parse errors to crash #12

Closed soareschen closed 4 years ago

soareschen commented 4 years ago

Version 0.10 migrates the implementation of fail from Monad to MonadFail. However in the code the version of fail is imported from Prelude. This means for GHC 8.6 or earlier the incorrect version of fail is called, causing all calls to fail to raise exception rather than gracefully returning Left.