Resolving dependencies... Configuring newtype-0.2... Configuring primitive-0.6.2.0... Building newtype-0.2... Building primitive-0.6.2.0... Installed newtype-0.2 Configuring random-1.1... Building random-1.1... Installed random-1.1 Installed primitive-0.6.2.0 Configuring tf-random-0.5... Building tf-random-0.5... Installed tf-random-0.5 Configuring QuickCheck-2.9.2... Building QuickCheck-2.9.2... Installed QuickCheck-2.9.2 Configuring HCodecs-0.5... Building HCodecs-0.5... Installed HCodecs-0.5 Configuring hamid-0.7... Building hamid-0.7... Failed to install hamid-0.7 Build log ( /home/builder/.cabal/logs/hamid-0.7.log ): cabal: Entering directory '/tmp/cabal-tmp-13174/hamid-0.7' Configuring hamid-0.7... Warning: 'ghc-options: -threaded' has no effect for libraries. It should only be used for executables. Building hamid-0.7... Preprocessing library hamid-0.7... [1 of 3] Compiling System.MIDI.Base ( src/System/MIDI/Base.hs, dist/build/System/MIDI/Base.o ) [2 of 3] Compiling System.MIDI.Placeholder ( src/System/MIDI/Placeholder.hs, dist/build/System/MIDI/Placeholder.o ) [3 of 3] Compiling System.MIDI ( src/System/MIDI.hs, dist/build/System/MIDI.o ) src/System/MIDI.hs:96:15: error: • No instance for (Eq S.Source) arising from the 'deriving' clause of a data type declaration Possible fix: use a standalone 'deriving instance' declaration, so you can specify the instance context yourself There are instances for similar types: instance Eq Source -- Defined at src/System/MIDI.hs:96:15 • When deriving the instance for (Eq Source) src/System/MIDI.hs:100:15: error: • No instance for (Eq S.Destination) arising from the 'deriving' clause of a data type declaration Possible fix: use a standalone 'deriving instance' declaration, so you can specify the instance context yourself There are instances for similar types: instance Eq Destination -- Defined at src/System/MIDI.hs:100:15 • When deriving the instance for (Eq Destination) cabal: Leaving directory '/tmp/cabal-tmp-13174/hamid-0.7' cabal: Error: some packages failed to install: hamid-0.7 failed during the building phase. The exception was: ExitFailure 1