Resolving dependencies... Downloading serialport-0.4.5... [1 of 1] Compiling Main ( /tmp/serialport-0.4.5-1546/serialport-0.4.5/Setup.hs, /tmp/serialport-0.4.5-1546/serialport-0.4.5/dist/setup/Main.o ) Linking /tmp/serialport-0.4.5-1546/serialport-0.4.5/dist/setup/setup ... Configuring serialport-0.4.5... Building serialport-0.4.5... Preprocessing library serialport-0.4.5... [1 of 3] Compiling System.Hardware.Serialport.Types ( System/Hardware/Serialport/Types.hs, dist/build/System/Hardware/Serialport/Types.o ) [2 of 3] Compiling System.Hardware.Serialport.Posix ( dist/build/System/Hardware/Serialport/Posix.hs, dist/build/System/Hardware/Serialport/Posix.o ) [3 of 3] Compiling System.Hardware.Serialport ( System/Hardware/Serialport.hs, dist/build/System/Hardware/Serialport.o ) In-place registering serialport-0.4.5... Running Haddock for serialport-0.4.5... Running hscolour for serialport-0.4.5... Preprocessing library serialport-0.4.5... Preprocessing library serialport-0.4.5... Warning: The documentation for the following packages are not installed. No links will be generated to these packages: rts-1.0 Haddock coverage: 29% ( 2 / 7) in 'System.Hardware.Serialport.Types' 48% ( 10 / 21) in 'System.Hardware.Serialport.Posix' 81% ( 21 / 26) in 'System.Hardware.Serialport' Documentation created: dist/doc/html/serialport/index.html Installing library in /srv/hackage/var/build/tmp-install/lib/x86_64-linux-ghc-7.6.3/serialport-0.4.5 Registering serialport-0.4.5... Installed serialport-0.4.5 Downloading NXT-0.2.1... Configuring NXT-0.2.1... Building NXT-0.2.1... Preprocessing library NXT-0.2.1... [ 1 of 12] Compiling Robotics.NXT.Externals ( lib/Robotics/NXT/Externals.hs, dist/build/Robotics/NXT/Externals.o ) [ 2 of 12] Compiling Robotics.NXT.Internals ( lib/Robotics/NXT/Internals.hs, dist/build/Robotics/NXT/Internals.o ) [ 3 of 12] Compiling Robotics.NXT.Data ( lib/Robotics/NXT/Data.hs, dist/build/Robotics/NXT/Data.o ) lib/Robotics/NXT/Data.hs:79:80: Could not deduce (Show a) arising from a use of `show' from the context (Integral a) bound by the type signature for toUByte :: Integral a => a -> [Word8] at lib/Robotics/NXT/Data.hs:77:12-37 Possible fix: add (Show a) to the context of the type signature for toUByte :: Integral a => a -> [Word8] In the second argument of `(++)', namely `show x' In the second argument of `($)', namely `"toUByte: " ++ show x' In the expression: throw . PatternMatchFail $ "toUByte: " ++ show x lib/Robotics/NXT/Data.hs:83:82: Could not deduce (Show a) arising from a use of `show' from the context (Integral a) bound by the type signature for toUWord :: Integral a => a -> [Word8] at lib/Robotics/NXT/Data.hs:81:12-37 Possible fix: add (Show a) to the context of the type signature for toUWord :: Integral a => a -> [Word8] In the second argument of `(++)', namely `show x' In the second argument of `($)', namely `"toUWord: " ++ show x' In the expression: throw . PatternMatchFail $ "toUWord: " ++ show x lib/Robotics/NXT/Data.hs:87:88: Could not deduce (Show a) arising from a use of `show' from the context (Integral a) bound by the type signature for toULong :: Integral a => a -> [Word8] at lib/Robotics/NXT/Data.hs:85:12-37 Possible fix: add (Show a) to the context of the type signature for toULong :: Integral a => a -> [Word8] In the second argument of `(++)', namely `show x' In the second argument of `($)', namely `"toULong: " ++ show x' In the expression: throw . PatternMatchFail $ "toULong: " ++ show x lib/Robotics/NXT/Data.hs:93:82: Could not deduce (Show a) arising from a use of `show' from the context (Integral a) bound by the type signature for toSByte :: Integral a => a -> [Word8] at lib/Robotics/NXT/Data.hs:90:12-37 Possible fix: add (Show a) to the context of the type signature for toSByte :: Integral a => a -> [Word8] In the second argument of `(++)', namely `show x' In the second argument of `($)', namely `"toSByte: " ++ show x' In the expression: throw . PatternMatchFail $ "toSByte: " ++ show x lib/Robotics/NXT/Data.hs:98:84: Could not deduce (Show a) arising from a use of `show' from the context (Integral a) bound by the type signature for toSWord :: Integral a => a -> [Word8] at lib/Robotics/NXT/Data.hs:95:12-37 Possible fix: add (Show a) to the context of the type signature for toSWord :: Integral a => a -> [Word8] In the second argument of `(++)', namely `show x' In the second argument of `($)', namely `"toSWord: " ++ show x' In the expression: throw . PatternMatchFail $ "toSWord: " ++ show x lib/Robotics/NXT/Data.hs:103:90: Could not deduce (Show a) arising from a use of `show' from the context (Integral a) bound by the type signature for toSLong :: Integral a => a -> [Word8] at lib/Robotics/NXT/Data.hs:100:12-37 Possible fix: add (Show a) to the context of the type signature for toSLong :: Integral a => a -> [Word8] In the second argument of `(++)', namely `show x' In the second argument of `($)', namely `"toSLong: " ++ show x' In the expression: throw . PatternMatchFail $ "toSLong: " ++ show x Failed to install NXT-0.2.1 cabal: Error: some packages failed to install: NXT-0.2.1 failed during the building phase. The exception was: ExitFailure 1