*** setup configure Configuring sessions-2008.2.28... Dependency base -any: using base-4.1.0.0 Dependency mtl -any: using mtl-1.1.0.2 Using Cabal-1.6.0.1 compiled by ghc-6.8 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/sessions-2008.2.28/ghc-6.10.2 Private binaries installed in: /usr/local/tmp/archive/install/libexec Data files installed in: /usr/local/tmp/archive/install/share/sessions-2008.2.28 Documentation installed in: /usr/local/tmp/archive/install/share/doc/sessions-2008.2.28 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.15.1 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 No greencard found 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 Creating dist/build (and its parents) Creating dist/build/autogen (and its parents) Preprocessing library sessions-2008.2.28... Building sessions-2008.2.28... Building library... Creating dist/build (and its parents) /usr/local/bin/ghc -package-name sessions-2008.2.28 --make -hide-all-packages -i -idist/build -i. -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 base-4.1.0.0 -package mtl-1.1.0.2 -O -Wall -fno-warn-name-shadowing Control.Concurrent.Session Control.Concurrent.Session.Runtime Control.Concurrent.Session.SessionType Control.Concurrent.Session.SMonad Control.Concurrent.Session.List Control.Concurrent.Session.Number Control.Concurrent.Session.Map Control.Concurrent.Session.Interleaving Control/Concurrent/Session/Interleaving.hs:22:79: Warning: -XPatternSignatures is deprecated: use -XScopedTypeVariables or pragma {-# LANGUAGE ScopedTypeVariables#-} instead [1 of 8] Compiling Control.Concurrent.Session.Number ( Control/Concurrent/Session/Number.hs, dist/build/Control/Concurrent/Session/Number.o ) [2 of 8] Compiling Control.Concurrent.Session.List ( Control/Concurrent/Session/List.hs, dist/build/Control/Concurrent/Session/List.o ) Control/Concurrent/Session/List.hs:245:60: Could not deduce (Control.Concurrent.Session.Number.Reverse' b' E acc', Control.Concurrent.Session.Number.Reverse' acc E a') from the context (Monad m) arising from a use of `tySucc' at Control/Concurrent/Session/List.hs:245:60-69 Possible fix: add (Control.Concurrent.Session.Number.Reverse' b' E acc', Control.Concurrent.Session.Number.Reverse' acc E a') to the context of the type signature for `tyListElem'' or add an instance declaration for (Control.Concurrent.Session.Number.Reverse' b' E acc', Control.Concurrent.Session.Number.Reverse' acc E a') In the second argument of `tyListElem'', namely `(tySucc acc)' In the expression: tyListElem' nxt (tySucc acc) val In the definition of `tyListElem'': tyListElem' (Cons _ nxt) acc val = tyListElem' nxt (tySucc acc) val *** Trying again with preferred-versions *** setup configure Configuring sessions-2008.2.28... Dependency base -any && <4: using base-3.0.3.1 Dependency mtl -any: using mtl-1.1.0.2 Using Cabal-1.6.0.1 compiled by ghc-6.8 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/sessions-2008.2.28/ghc-6.10.2 Private binaries installed in: /usr/local/tmp/archive/install/libexec Data files installed in: /usr/local/tmp/archive/install/share/sessions-2008.2.28 Documentation installed in: /usr/local/tmp/archive/install/share/doc/sessions-2008.2.28 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.15.1 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 No greencard found 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 Creating dist/build (and its parents) Creating dist/build/autogen (and its parents) Preprocessing library sessions-2008.2.28... Building sessions-2008.2.28... Building library... Creating dist/build (and its parents) /usr/local/bin/ghc -package-name sessions-2008.2.28 --make -hide-all-packages -i -idist/build -i. -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 base-3.0.3.1 -package mtl-1.1.0.2 -O -Wall -fno-warn-name-shadowing Control.Concurrent.Session Control.Concurrent.Session.Runtime Control.Concurrent.Session.SessionType Control.Concurrent.Session.SMonad Control.Concurrent.Session.List Control.Concurrent.Session.Number Control.Concurrent.Session.Map Control.Concurrent.Session.Interleaving Control/Concurrent/Session/Interleaving.hs:22:79: Warning: -XPatternSignatures is deprecated: use -XScopedTypeVariables or pragma {-# LANGUAGE ScopedTypeVariables#-} instead [2 of 8] Compiling Control.Concurrent.Session.List ( Control/Concurrent/Session/List.hs, dist/build/Control/Concurrent/Session/List.o ) Control/Concurrent/Session/List.hs:245:60: Could not deduce (Control.Concurrent.Session.Number.Reverse' b' E acc', Control.Concurrent.Session.Number.Reverse' acc E a') from the context (Monad m) arising from a use of `tySucc' at Control/Concurrent/Session/List.hs:245:60-69 Possible fix: add (Control.Concurrent.Session.Number.Reverse' b' E acc', Control.Concurrent.Session.Number.Reverse' acc E a') to the context of the type signature for `tyListElem'' or add an instance declaration for (Control.Concurrent.Session.Number.Reverse' b' E acc', Control.Concurrent.Session.Number.Reverse' acc E a') In the second argument of `tyListElem'', namely `(tySucc acc)' In the expression: tyListElem' nxt (tySucc acc) val In the definition of `tyListElem'': tyListElem' (Cons _ nxt) acc val = tyListElem' nxt (tySucc acc) val