Warning: The install command is a part of the legacy v1 style of cabal usage. Please switch to using either the new project style and the new-install command or the legacy v1-install alias as new-style projects will become the default in the next version of cabal-install. Please file a bug if you cannot replicate a working v1- use case with the new-style commands. For more information, see: https://wiki.haskell.org/Cabal/NewBuild Resolving dependencies... Starting byteorder-1.0.4 Starting utility-ht-0.0.14 Building byteorder-1.0.4 Building utility-ht-0.0.14 Completed byteorder-1.0.4 Downloading storable-endian-0.2.6 Downloaded storable-endian-0.2.6 Starting storable-endian-0.2.6 Building storable-endian-0.2.6 Completed storable-endian-0.2.6 Completed utility-ht-0.0.14 Downloading med-module-0.1.2 Downloaded med-module-0.1.2 Starting med-module-0.1.2 Building med-module-0.1.2 Failed to install med-module-0.1.2 Build log ( /home/builder/.cabal/logs/ghc-8.6.3/med-module-0.1.2-Gcwod66izFM9edVz3eBy2z.log ): cabal: Entering directory '/tmp/cabal-tmp-10633/med-module-0.1.2' Configuring med-module-0.1.2... Preprocessing library for med-module-0.1.2.. Building library for med-module-0.1.2.. [ 1 of 42] Compiling Sound.MED.Basic.ByteString ( src/Sound/MED/Basic/ByteString.hs, dist/build/Sound/MED/Basic/ByteString.o ) [ 2 of 42] Compiling Sound.MED.Basic.Human ( src/Sound/MED/Basic/Human.hs, dist/build/Sound/MED/Basic/Human.o ) [ 3 of 42] Compiling Sound.MED.Basic.Pretty ( src/Sound/MED/Basic/Pretty.hs, dist/build/Sound/MED/Basic/Pretty.o ) [ 4 of 42] Compiling Sound.MED.Basic.Storable ( src/Sound/MED/Basic/Storable.hs, dist/build/Sound/MED/Basic/Storable.o ) [ 5 of 42] Compiling Sound.MED.Basic.Utility ( src/Sound/MED/Basic/Utility.hs, dist/build/Sound/MED/Basic/Utility.o ) [ 6 of 42] Compiling Sound.MED.Basic.AmigaPrivate ( src-fail/before-4.13/Sound/MED/Basic/AmigaPrivate.hs, dist/build/Sound/MED/Basic/AmigaPrivate.o ) [ 7 of 42] Compiling Sound.MED.Basic.Amiga ( src/Sound/MED/Basic/Amiga.hs, dist/build/Sound/MED/Basic/Amiga.o ) [ 8 of 42] Compiling Sound.MED.Raw.CmdPageData ( src/Sound/MED/Raw/CmdPageData.hs, dist/build/Sound/MED/Raw/CmdPageData.o ) [ 9 of 42] Compiling Sound.MED.Raw.BlockCmdPageTable ( src/Sound/MED/Raw/BlockCmdPageTable.hs, dist/build/Sound/MED/Raw/BlockCmdPageTable.o ) [10 of 42] Compiling Sound.MED.Raw.BlockInfo ( src/Sound/MED/Raw/BlockInfo.hs, dist/build/Sound/MED/Raw/BlockInfo.o ) [11 of 42] Compiling Sound.MED.Raw.InstrExt ( src/Sound/MED/Raw/InstrExt.hs, dist/build/Sound/MED/Raw/InstrExt.o ) [12 of 42] Compiling Sound.MED.Raw.MMD0NoteData ( src/Sound/MED/Raw/MMD0NoteData.hs, dist/build/Sound/MED/Raw/MMD0NoteData.o ) [13 of 42] Compiling Sound.MED.Raw.MMD0Block ( src/Sound/MED/Raw/MMD0Block.hs, dist/build/Sound/MED/Raw/MMD0Block.o ) [14 of 42] Compiling Sound.MED.Raw.MMD0Sample ( src/Sound/MED/Raw/MMD0Sample.hs, dist/build/Sound/MED/Raw/MMD0Sample.o ) [15 of 42] Compiling Sound.MED.Raw.MMD0Song ( src/Sound/MED/Raw/MMD0Song.hs, dist/build/Sound/MED/Raw/MMD0Song.o ) [16 of 42] Compiling Sound.MED.Raw.MMD1NoteData ( src/Sound/MED/Raw/MMD1NoteData.hs, dist/build/Sound/MED/Raw/MMD1NoteData.o ) [17 of 42] Compiling Sound.MED.Raw.MMD1Block ( src/Sound/MED/Raw/MMD1Block.hs, dist/build/Sound/MED/Raw/MMD1Block.o ) [18 of 42] Compiling Sound.MED.Generic.Block ( src/Sound/MED/Generic/Block.hs, dist/build/Sound/MED/Generic/Block.o ) [19 of 42] Compiling Sound.MED.Raw.MMDARexxTrigCmd ( src/Sound/MED/Raw/MMDARexxTrigCmd.hs, dist/build/Sound/MED/Raw/MMDARexxTrigCmd.o ) [20 of 42] Compiling Sound.MED.Raw.MMDARexx ( src/Sound/MED/Raw/MMDARexx.hs, dist/build/Sound/MED/Raw/MMDARexx.o ) [21 of 42] Compiling Sound.MED.Raw.MMDDump ( src/Sound/MED/Raw/MMDDump.hs, dist/build/Sound/MED/Raw/MMDDump.o ) [22 of 42] Compiling Sound.MED.Raw.MMDDumpData ( src/Sound/MED/Raw/MMDDumpData.hs, dist/build/Sound/MED/Raw/MMDDumpData.o ) [23 of 42] Compiling Sound.MED.Raw.MMDInfo ( src/Sound/MED/Raw/MMDInfo.hs, dist/build/Sound/MED/Raw/MMDInfo.o ) [24 of 42] Compiling Sound.MED.Raw.MMDInstrInfo ( src/Sound/MED/Raw/MMDInstrInfo.hs, dist/build/Sound/MED/Raw/MMDInstrInfo.o ) [25 of 42] Compiling Sound.MED.Raw.MMDMIDICmd3x ( src/Sound/MED/Raw/MMDMIDICmd3x.hs, dist/build/Sound/MED/Raw/MMDMIDICmd3x.o ) [26 of 42] Compiling Sound.MED.Raw.NotationInfo ( src/Sound/MED/Raw/NotationInfo.hs, dist/build/Sound/MED/Raw/NotationInfo.o ) [27 of 42] Compiling Sound.MED.Raw.MMD0exp ( src/Sound/MED/Raw/MMD0exp.hs, dist/build/Sound/MED/Raw/MMD0exp.o ) [28 of 42] Compiling Sound.MED.Raw.PlaySeq ( src/Sound/MED/Raw/PlaySeq.hs, dist/build/Sound/MED/Raw/PlaySeq.o ) [29 of 42] Compiling Sound.MED.Raw.MMD2Song ( src/Sound/MED/Raw/MMD2Song.hs, dist/build/Sound/MED/Raw/MMD2Song.o ) [30 of 42] Compiling Sound.MED.Generic.Tempo ( src/Sound/MED/Generic/Tempo.hs, dist/build/Sound/MED/Generic/Tempo.o ) [31 of 42] Compiling Sound.MED.Generic.PlaySeq ( src/Sound/MED/Generic/PlaySeq.hs, dist/build/Sound/MED/Generic/PlaySeq.o ) [32 of 42] Compiling Sound.MED.Raw.SampleInstr ( src/Sound/MED/Raw/SampleInstr.hs, dist/build/Sound/MED/Raw/SampleInstr.o ) [33 of 42] Compiling Sound.MED.Raw.SynthWF ( src/Sound/MED/Raw/SynthWF.hs, dist/build/Sound/MED/Raw/SynthWF.o ) [34 of 42] Compiling Sound.MED.Raw.SynthInstr ( src/Sound/MED/Raw/SynthInstr.hs, dist/build/Sound/MED/Raw/SynthInstr.o ) [35 of 42] Compiling Sound.MED.Raw.HybridInstr ( src/Sound/MED/Raw/HybridInstr.hs, dist/build/Sound/MED/Raw/HybridInstr.o ) src/Sound/MED/Raw/HybridInstr.hs:41:3: error: • Could not deduce (Control.Monad.Fail.MonadFail m) arising from a do statement with the failable pattern ‘wf0' : wf''’ from the context: Reader m bound by the type signature for: peek :: forall (m :: * -> *). Reader m => PTR -> m HybridInstr at src/Sound/MED/Raw/HybridInstr.hs:28:1-42 Possible fix: add (Control.Monad.Fail.MonadFail m) to the context of the type signature for: peek :: forall (m :: * -> *). Reader m => PTR -> m HybridInstr • In a stmt of a 'do' block: wf0' : wf'' <- mapM peekPTR $ pointerRange (p + 278) 4 64 In the expression: do defaultdecay' <- peekUBYTE (p + 6) reserved' <- mapM peekUBYTE $ pointerRange (p + 7) 1 3 rep' <- peekUWORD (p + 10) replen' <- peekUWORD (p + 12) .... In an equation for ‘peek’: peek p = do defaultdecay' <- peekUBYTE (p + 6) reserved' <- mapM peekUBYTE $ pointerRange (p + 7) 1 3 rep' <- peekUWORD (p + 10) .... | 41 | wf0':wf'' <- mapM peekPTR $ pointerRange (p+278) 4 64 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cabal: Leaving directory '/tmp/cabal-tmp-10633/med-module-0.1.2' cabal: Error: some packages failed to install: med-module-0.1.2-Gcwod66izFM9edVz3eBy2z failed during the building phase. The exception was: ExitFailure 1