*** setup configure setup/setup configure --ghc --user --prefix=/usr/local/tmp/archive/install --haddock-option=--use-contents=http://hackage.haskell.org/package/network-rpca-0.0.1 --verbose Configuring network-rpca-0.0.1... Warning: No 'build-type' specified. If you do not need a custom Setup.hs or ./configure script then use 'build-type: Simple'. Dependency array -any: using array-0.2.0.0 Dependency base -any: using base-4.1.0.0 Dependency binary >=0.4: using binary-0.5.0.1 Dependency binary-strict -any: using binary-strict-0.1 Dependency bytestring >=0.9: using bytestring-0.9.1.4 Dependency codec-libevent >=0.1.2: using codec-libevent-0.1.2 Dependency containers -any: using containers-0.2.0.1 Dependency control-timeout >=0.1.1: using control-timeout-0.1.2 Dependency network >=2.1: using network-2.2.1.4 Dependency network-bytestring -any: using network-bytestring-0.1.2.1 Dependency stm >=2.1: using stm-2.1.1.2 Warning: This package indirectly depends on multiple versions of the same package. This is highly likely to cause a compile failure. package codec-libevent-0.1.2 requires parsec-2.1.0.1 package network-2.2.1.4 requires parsec-3.0.0 Using Cabal-1.6.0.1 compiled by ghc-6.10 Using compiler: ghc-6.10.2 Using install prefix: /usr/local/tmp/archive/install Binaries installed in: /usr/local/tmp/archive/install/bin Libraries installed in: /usr/local/tmp/archive/install/lib/network-rpca-0.0.1/ghc-6.10.2 Private binaries installed in: /usr/local/tmp/archive/install/libexec Data files installed in: /usr/local/tmp/archive/install/share/network-rpca-0.0.1 Documentation installed in: /usr/local/tmp/archive/install/share/doc/network-rpca-0.0.1 Using alex version 2.2 found on system at: /usr/bin/alex Using ar found on system at: /usr/bin/ar Using c2hs version 0.16.0 found on system at: /usr/local/bin/c2hs Using cpphs version 0.7 found on system at: /usr/bin/cpphs Using ffihugs found on system at: /usr/local/bin/ffihugs Using gcc version 4.3.3 found on system at: /usr/bin/gcc Using ghc version 6.10.2 found on system at: /usr/local/bin/ghc Using ghc-pkg version 6.10.2 found on system at: /usr/local/bin/ghc-pkg Using greencard found on system at: /usr/local/tmp/archive/install/bin/greencard Using haddock version 2.4.2 found on system at: /usr/local/bin/haddock Using happy version 1.17 found on system at: /usr/local/bin/happy No hmake found Using hsc2hs version 0.67 found on system at: /usr/local/bin/hsc2hs Using hscolour version 1.9 found on system at: /usr/local/bin/HsColour Using hugs found on system at: /usr/local/bin/hugs No jhc found Using ld found on system at: /usr/bin/ld No nhc98 found Using pkg-config version 0.22 found on system at: /usr/bin/pkg-config Using ranlib found on system at: /usr/bin/ranlib Using strip found on system at: /usr/bin/strip Using tar found on system at: /bin/tar *** setup build setup/setup build --verbose Creating dist/build (and its parents) Creating dist/build/autogen (and its parents) Preprocessing library network-rpca-0.0.1... Building network-rpca-0.0.1... Building library... Creating dist/build (and its parents) /usr/local/bin/ghc -package-name network-rpca-0.0.1 --make -hide-all-packages -i -idist/build -isrc -idist/build/autogen -Idist/build/autogen -Idist/build -optP-include -optPdist/build/autogen/cabal_macros.h -odir dist/build -hidir dist/build -stubdir dist/build -package array-0.2.0.0 -package base-4.1.0.0 -package binary-0.5.0.1 -package binary-strict-0.1 -package bytestring-0.9.1.4 -package codec-libevent-0.1.2 -package containers-0.2.0.1 -package control-timeout-0.1.2 -package network-2.2.1.4 -package network-bytestring-0.1.2.1 -package stm-2.1.1.2 -O Network.RPCA.Channel Network.RPCA.Connection Network.RPCA.ExportedService Network.RPCA.Port Network.RPCA.Structs Network.RPCA.Util [3 of 6] Compiling Network.RPCA.Connection ( src/Network/RPCA/Connection.hs, dist/build/Network/RPCA/Connection.o ) [4 of 6] Compiling Network.RPCA.Port ( src/Network/RPCA/Port.hs, dist/build/Network/RPCA/Port.o ) [5 of 6] Compiling Network.RPCA.ExportedService ( src/Network/RPCA/ExportedService.hs, dist/build/Network/RPCA/ExportedService.o ) [6 of 6] Compiling Network.RPCA.Channel ( src/Network/RPCA/Channel.hs, dist/build/Network/RPCA/Channel.o ) src/Network/RPCA/Channel.hs:261:27: Couldn't match expected type `IO () -> m a' against inferred type `IO (IO () -> STM TimeoutTag)' In the first argument of `(>>=)', namely `addTimeoutAtomic timeout (handleTimeout nc id)' In the expression: addTimeoutAtomic timeout (handleTimeout nc id) >>= return . Just In a case alternative: Just timeout -> addTimeoutAtomic timeout (handleTimeout nc id) >>= return . Just *** Trying again with preferred-versions *** setup configure setup/setup configure --ghc --user --prefix=/usr/local/tmp/archive/install --haddock-option=--use-contents=http://hackage.haskell.org/package/network-rpca-0.0.1 --constraint=base<4 --constraint=parsec<3 --constraint=HaXml==1.13.* --constraint=QuickCheck<2 --verbose Configuring network-rpca-0.0.1... Warning: No 'build-type' specified. If you do not need a custom Setup.hs or ./configure script then use 'build-type: Simple'. Dependency array -any: using array-0.2.0.0 Dependency base -any && <4: using base-3.0.3.1 Dependency binary >=0.4: using binary-0.5.0.1 Dependency binary-strict -any: using binary-strict-0.1 Dependency bytestring >=0.9: using bytestring-0.9.1.4 Dependency codec-libevent >=0.1.2: using codec-libevent-0.1.2 Dependency containers -any: using containers-0.2.0.1 Dependency control-timeout >=0.1.1: using control-timeout-0.1.2 Dependency network >=2.1: using network-2.2.1.4 Dependency network-bytestring -any: using network-bytestring-0.1.2.1 Dependency stm >=2.1: using stm-2.1.1.2 Warning: This package indirectly depends on multiple versions of the same package. This is highly likely to cause a compile failure. package codec-libevent-0.1.2 requires parsec-2.1.0.1 package network-2.2.1.4 requires parsec-3.0.0 Using Cabal-1.6.0.1 compiled by ghc-6.10 Using compiler: ghc-6.10.2 Using install prefix: /usr/local/tmp/archive/install Binaries installed in: /usr/local/tmp/archive/install/bin Libraries installed in: /usr/local/tmp/archive/install/lib/network-rpca-0.0.1/ghc-6.10.2 Private binaries installed in: /usr/local/tmp/archive/install/libexec Data files installed in: /usr/local/tmp/archive/install/share/network-rpca-0.0.1 Documentation installed in: /usr/local/tmp/archive/install/share/doc/network-rpca-0.0.1 Using alex version 2.2 found on system at: /usr/bin/alex Using ar found on system at: /usr/bin/ar Using c2hs version 0.16.0 found on system at: /usr/local/bin/c2hs Using cpphs version 0.7 found on system at: /usr/bin/cpphs Using ffihugs found on system at: /usr/local/bin/ffihugs Using gcc version 4.3.3 found on system at: /usr/bin/gcc Using ghc version 6.10.2 found on system at: /usr/local/bin/ghc Using ghc-pkg version 6.10.2 found on system at: /usr/local/bin/ghc-pkg Using greencard found on system at: /usr/local/tmp/archive/install/bin/greencard Using haddock version 2.4.2 found on system at: /usr/local/bin/haddock Using happy version 1.17 found on system at: /usr/local/bin/happy No hmake found Using hsc2hs version 0.67 found on system at: /usr/local/bin/hsc2hs Using hscolour version 1.9 found on system at: /usr/local/bin/HsColour Using hugs found on system at: /usr/local/bin/hugs No jhc found Using ld found on system at: /usr/bin/ld No nhc98 found Using pkg-config version 0.22 found on system at: /usr/bin/pkg-config Using ranlib found on system at: /usr/bin/ranlib Using strip found on system at: /usr/bin/strip Using tar found on system at: /bin/tar *** setup build setup/setup build --verbose Creating dist/build (and its parents) Creating dist/build/autogen (and its parents) Preprocessing library network-rpca-0.0.1... Building network-rpca-0.0.1... Building library... Creating dist/build (and its parents) /usr/local/bin/ghc -package-name network-rpca-0.0.1 --make -hide-all-packages -i -idist/build -isrc -idist/build/autogen -Idist/build/autogen -Idist/build -optP-include -optPdist/build/autogen/cabal_macros.h -odir dist/build -hidir dist/build -stubdir dist/build -package array-0.2.0.0 -package base-3.0.3.1 -package binary-0.5.0.1 -package binary-strict-0.1 -package bytestring-0.9.1.4 -package codec-libevent-0.1.2 -package containers-0.2.0.1 -package control-timeout-0.1.2 -package network-2.2.1.4 -package network-bytestring-0.1.2.1 -package stm-2.1.1.2 -O Network.RPCA.Channel Network.RPCA.Connection Network.RPCA.ExportedService Network.RPCA.Port Network.RPCA.Structs Network.RPCA.Util [6 of 6] Compiling Network.RPCA.Channel ( src/Network/RPCA/Channel.hs, dist/build/Network/RPCA/Channel.o ) src/Network/RPCA/Channel.hs:261:27: Couldn't match expected type `IO () -> m a' against inferred type `IO (IO () -> STM TimeoutTag)' In the first argument of `(>>=)', namely `addTimeoutAtomic timeout (handleTimeout nc id)' In the expression: addTimeoutAtomic timeout (handleTimeout nc id) >>= return . Just In a case alternative: Just timeout -> addTimeoutAtomic timeout (handleTimeout nc id) >>= return . Just