Closed basvandijk closed 4 years ago
Derive MonadFail for Diff. Otherwise we hit the following on GHC-8.8.2:
MonadFail
Diff
src/Main.hs:186:13: error: • No instance for (MonadFail Diff) arising from a use of ‘fail’
nix-diff.cabal: allow Diff-0.4 and optparse-applicative-0.15. I tested the build with the following configuration:
nix-diff.cabal
Diff-0.4
optparse-applicative-0.15
Configuring nix-diff-1.0.8... Dependency Diff >=0.3 && <0.5: using Diff-0.4.0 Dependency optparse-applicative >=0.14.0.0 && <0.16: using optparse-applicative-0.15.1.0 ...
@basvandijk: It looks like MonadFail needs to be explicitly imported (at least for earlier versions of GHC)
@Gabriel439 thanks, fixed.
@basvandijk: Thank you! 🙂
Good!
Derive
MonadFail
forDiff
. Otherwise we hit the following on GHC-8.8.2:nix-diff.cabal
: allowDiff-0.4
andoptparse-applicative-0.15
. I tested the build with the following configuration: