*** setup configure Configuring hslogger-1.0.5... Flags chosen: small_base=True Dependency base >=3: using base-4.1.0.0 Dependency containers -any: using containers-0.2.0.1 Dependency directory -any: using directory-1.0.0.3 Dependency mtl -any: using mtl-1.1.0.2 Dependency network -any: using network-2.2.1 Dependency process -any: using process-1.0.1.1 Dependency unix -any: using unix-2.3.2.0 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/hslogger-1.0.5/ghc-6.10.2 Private binaries installed in: /usr/local/tmp/archive/install/libexec Data files installed in: /usr/local/tmp/archive/install/share/hslogger-1.0.5 Documentation installed in: /usr/local/tmp/archive/install/share/doc/hslogger-1.0.5 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 hslogger-1.0.5... Preprocessing executables for hslogger-1.0.5... Building hslogger-1.0.5... Building library... Creating dist/build (and its parents) /usr/local/bin/ghc -package-name hslogger-1.0.5 --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 base-4.1.0.0 -package containers-0.2.0.1 -package directory-1.0.0.3 -package mtl-1.1.0.2 -package network-2.2.1 -package process-1.0.1.1 -package unix-2.3.2.0 -O -O2 -XCPP -XExistentialQuantification System.Log System.Log.Handler System.Log.Handler.Simple System.Log.Handler.Syslog System.Log.Handler.Growl System.Log.Logger [1 of 6] Compiling System.Log ( src/System/Log.hs, dist/build/System/Log.o ) [2 of 6] Compiling System.Log.Handler ( src/System/Log/Handler.hs, dist/build/System/Log/Handler.o ) [3 of 6] Compiling System.Log.Handler.Simple ( src/System/Log/Handler/Simple.hs, dist/build/System/Log/Handler/Simple.o ) [4 of 6] Compiling System.Log.Handler.Syslog ( src/System/Log/Handler/Syslog.hs, dist/build/System/Log/Handler/Syslog.o ) [5 of 6] Compiling System.Log.Handler.Growl ( src/System/Log/Handler/Growl.hs, dist/build/System/Log/Handler/Growl.o ) [6 of 6] Compiling System.Log.Logger ( src/System/Log/Logger.hs, dist/build/System/Log/Logger.o ) src/System/Log/Logger.hs:333:20: Couldn't match expected type `Maybe Logger' against inferred type `IO Logger' In a stmt of a 'do' expression: result <- Map.lookup lname newlt In the expression: do let newlt = createLoggers (componentsOfName lname) lt result <- Map.lookup lname newlt return (newlt, result) In a case alternative: Nothing -> do let newlt = ... result <- Map.lookup lname newlt return (newlt, result) src/System/Log/Logger.hs:349:16: Couldn't match expected type `Maybe a' against inferred type `Either a1 b' In the pattern: Left (_ :: String) In a case alternative: Left (_ :: String) -> findmodellogger lt xs In the expression: case Map.lookup x lt of { Left (_ :: String) -> findmodellogger lt xs Right logger -> logger {handlers = []} } *** Trying again with preferred-versions *** setup configure Configuring hslogger-1.0.5... Flags chosen: small_base=True Dependency base ==3.*: using base-3.0.3.1 Dependency containers -any: using containers-0.2.0.1 Dependency directory -any: using directory-1.0.0.3 Dependency mtl -any: using mtl-1.1.0.2 Dependency network -any: using network-2.2.1 Dependency process -any: using process-1.0.1.1 Dependency unix -any: using unix-2.3.2.0 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/hslogger-1.0.5/ghc-6.10.2 Private binaries installed in: /usr/local/tmp/archive/install/libexec Data files installed in: /usr/local/tmp/archive/install/share/hslogger-1.0.5 Documentation installed in: /usr/local/tmp/archive/install/share/doc/hslogger-1.0.5 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 hslogger-1.0.5... Preprocessing executables for hslogger-1.0.5... Building hslogger-1.0.5... Building library... Creating dist/build (and its parents) /usr/local/bin/ghc -package-name hslogger-1.0.5 --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 base-3.0.3.1 -package containers-0.2.0.1 -package directory-1.0.0.3 -package mtl-1.1.0.2 -package network-2.2.1 -package process-1.0.1.1 -package unix-2.3.2.0 -O -O2 -XCPP -XExistentialQuantification System.Log System.Log.Handler System.Log.Handler.Simple System.Log.Handler.Syslog System.Log.Handler.Growl System.Log.Logger [2 of 6] Compiling System.Log.Handler ( src/System/Log/Handler.hs, dist/build/System/Log/Handler.o ) [3 of 6] Compiling System.Log.Handler.Simple ( src/System/Log/Handler/Simple.hs, dist/build/System/Log/Handler/Simple.o ) [4 of 6] Compiling System.Log.Handler.Syslog ( src/System/Log/Handler/Syslog.hs, dist/build/System/Log/Handler/Syslog.o ) [5 of 6] Compiling System.Log.Handler.Growl ( src/System/Log/Handler/Growl.hs, dist/build/System/Log/Handler/Growl.o ) [6 of 6] Compiling System.Log.Logger ( src/System/Log/Logger.hs, dist/build/System/Log/Logger.o ) src/System/Log/Logger.hs:333:20: Couldn't match expected type `Maybe Logger' against inferred type `IO Logger' In a stmt of a 'do' expression: result <- Map.lookup lname newlt In the expression: do let newlt = createLoggers (componentsOfName lname) lt result <- Map.lookup lname newlt return (newlt, result) In a case alternative: Nothing -> do let newlt = ... result <- Map.lookup lname newlt return (newlt, result) src/System/Log/Logger.hs:349:16: Couldn't match expected type `Maybe a' against inferred type `Either a1 b' In the pattern: Left (_ :: String) In a case alternative: Left (_ :: String) -> findmodellogger lt xs In the expression: case Map.lookup x lt of { Left (_ :: String) -> findmodellogger lt xs Right logger -> logger {handlers = []} }