Resolving dependencies... Configuring network-2.6.3.1... Building network-2.6.3.1... Installed network-2.6.3.1 Configuring powermate-0.1... Building powermate-0.1... Failed to install powermate-0.1 Build log ( /home/builder/.cabal/logs/powermate-0.1.log ): cabal: Entering directory '/tmp/cabal-tmp-21826/powermate-0.1' Configuring powermate-0.1... Warning: 'ghc-options: -prof' is not necessary and will lead to problems when used on a library. Use the configure flag --enable-library-profiling and/or --enable-profiling. Building powermate-0.1... Preprocessing library powermate-0.1... [1 of 2] Compiling PowerMate ( dist/build/PowerMate.hs, dist/build/PowerMate.o ) src/PowerMate.hsc:34:1: error: • Unacceptable argument type in foreign declaration: ‘Fd’ cannot be marshalled in a foreign call because its data constructor is not in scope Possible fix: import the data constructor to bring it into scope • When checking declaration: foreign import ccall safe "static sys/ioctl.h ioctl" ioctlChar :: Fd -> CInt -> Ptr CChar -> IO CInt cabal: Leaving directory '/tmp/cabal-tmp-21826/powermate-0.1' cabal: Error: some packages failed to install: mpdmate-0.1 depends on powermate-0.1 which failed to install. powermate-0.1 failed during the building phase. The exception was: ExitFailure 1