Resolving dependencies... Downloading NXT-0.1.5... Configuring NXT-0.1.5... Building NXT-0.1.5... Preprocessing library NXT-0.1.5... [ 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.1.5 cabal: Error: some packages failed to install: NXT-0.1.5 failed during the building phase. The exception was: ExitFailure 1