You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
binary bits doesn't compile on ghc 8.8.1 or later:
cabal v1-install binary-bits
Resolving dependencies...
Starting binary-bits-0.5
Building binary-bits-0.5
Failed to install binary-bits-0.5
Build log ( /Users/gcolpitts/.cabal/logs/ghc-8.10.0.20200123/binary-bits-0.5-KnF4JnKbFevEcApL2wyqoN.log ):
cabal: Entering directory '/var/folders/df/5d_dsdrx1dn4j30ktsgn8blh0000gp/T/cabal-tmp-94697/binary-bits-0.5'
Configuring binary-bits-0.5...
Preprocessing library for binary-bits-0.5..
Building library for binary-bits-0.5..
[1 of 3] Compiling Data.Binary.Bits.Get ( Data/Binary/Bits/Get.hs, dist/build/Data/Binary/Bits/Get.o, dist/build/Data/Binary/Bits/Get.dyn_o )
Data/Binary/Bits/Get.hs:345:3: error:
‘fail’ is not a (visible) method of class ‘Monad’
|
345 | fail str = B $ (S inp n) -> putBackState inp n >> fail str
| ^^^^
cabal: Leaving directory '/var/folders/df/5d_dsdrx1dn4j30ktsgn8blh0000gp/T/cabal-tmp-94697/binary-bits-0.5'
cabal: Error: some packages failed to install:
binary-bits-0.5-KnF4JnKbFevEcApL2wyqoN failed during the building phase. The
exception was:
ExitFailure 1
binary bits doesn't compile on ghc 8.8.1 or later:
cabal v1-install binary-bits
Resolving dependencies...
Starting binary-bits-0.5
Building binary-bits-0.5
Failed to install binary-bits-0.5
Build log ( /Users/gcolpitts/.cabal/logs/ghc-8.10.0.20200123/binary-bits-0.5-KnF4JnKbFevEcApL2wyqoN.log ):
cabal: Entering directory '/var/folders/df/5d_dsdrx1dn4j30ktsgn8blh0000gp/T/cabal-tmp-94697/binary-bits-0.5'
Configuring binary-bits-0.5...
Preprocessing library for binary-bits-0.5..
Building library for binary-bits-0.5..
[1 of 3] Compiling Data.Binary.Bits.Get ( Data/Binary/Bits/Get.hs, dist/build/Data/Binary/Bits/Get.o, dist/build/Data/Binary/Bits/Get.dyn_o )
Data/Binary/Bits/Get.hs:345:3: error:
‘fail’ is not a (visible) method of class ‘Monad’
|
345 | fail str = B $ (S inp n) -> putBackState inp n >> fail str
| ^^^^
cabal: Leaving directory '/var/folders/df/5d_dsdrx1dn4j30ktsgn8blh0000gp/T/cabal-tmp-94697/binary-bits-0.5'
cabal: Error: some packages failed to install:
binary-bits-0.5-KnF4JnKbFevEcApL2wyqoN failed during the building phase. The
exception was:
ExitFailure 1
This error is expected with 8.8.1 or later. From https://gitlab.haskell.org/ghc/ghc/wikis/migration/8.8 :
GHC 8.8 implements the final phase of the MonadFail proposal and now does the following:
The fail method of Monad has been removed in favor of the method of the same name in the MonadFail class.
MonadFail(..) is now exported from the Prelude and Control.Monad modules.
The MonadFailDesugaring language extension is now deprecated, as its effects are always enabled.
Also see https://gitlab.haskell.org/ghc/ghc/wikis/proposal/monad-fail#adapting-old-code
The text was updated successfully, but these errors were encountered: