Resolving dependencies... Downloading powermate-0.1... Configuring powermate-0.1... 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: Unacceptable argument type in foreign declaration: Fd When checking declaration: foreign import ccall safe "static sys/ioctl.h ioctl" ioctlChar :: Fd -> CInt -> Ptr CChar -> IO CInt Failed to install 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