*** setup configure Reading installed packages... /usr/local/bin/ghc-pkg list Dependency Cabal>=1.2: using Cabal-1.6.0.1 Creating dist/setup (and its parents) /usr/local/bin/ghc -package Cabal-1.6.0.1 --make Setup.hs -o dist/setup/setup -odir dist/setup -hidir dist/setup [1 of 1] Compiling Main ( Setup.hs, dist/setup/Main.o ) Linking dist/setup/setup ... dist/setup/setup configure --ghc --user --prefix=/usr/local/tmp/archive/install --haddock-option=--use-contents=http://hackage.haskell.org/cgi-bin/hackage-scripts/package/mkcabal-0.4 --verbose Configuring mkcabal-0.4... Flags chosen: small_base=True Warning: No 'build-type' specified. If you do not need a custom Setup.hs or ./configure script then use 'build-type: Simple'. Dependency base >=3: using base-3.0.2.0 Dependency directory -any: using directory-1.0.0.1 Dependency mtl -any: using mtl-1.1.0.2 Dependency old-locale -any: using old-locale-1.0.0.0 Dependency old-time -any: using old-time-1.0.0.0 Dependency pcre-light -any: using pcre-light-0.3.1 Dependency pretty -any: using pretty-1.0.0.0 Dependency readline -any: using readline-1.0.1.0 Using Cabal-1.6.0.1 compiled by ghc-6.8 Using compiler: ghc-6.8.3 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/mkcabal-0.4/ghc-6.8.3 Private binaries installed in: /usr/local/tmp/archive/install/libexec Data files installed in: /usr/local/tmp/archive/install/share/mkcabal-0.4 Documentation installed in: /usr/local/tmp/archive/install/share/doc/mkcabal-0.4 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.2 found on system at: /usr/bin/gcc Using ghc version 6.8.3 found on system at: /usr/local/bin/ghc Using ghc-pkg version 6.8.3 found on system at: /usr/local/bin/ghc-pkg No greencard found Using haddock version 2.3.0 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.66 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 dist/setup/setup build --verbose Creating dist/build (and its parents) Creating dist/build/autogen (and its parents) Preprocessing executables for mkcabal-0.4... Building mkcabal-0.4... Building executable: mkcabal... Creating dist/build/mkcabal (and its parents) Creating dist/build/mkcabal/mkcabal-tmp (and its parents) /usr/local/bin/ghc -o dist/build/mkcabal/mkcabal --make -hide-all-packages -i -idist/build/mkcabal/mkcabal-tmp -i. -idist/build/autogen -Idist/build/autogen -Idist/build/mkcabal/mkcabal-tmp -optP-include -optPdist/build/autogen/cabal_macros.h -odir dist/build/mkcabal/mkcabal-tmp -hidir dist/build/mkcabal/mkcabal-tmp -stubdir dist/build/mkcabal/mkcabal-tmp -package base-3.0.2.0 -package directory-1.0.0.1 -package mtl-1.1.0.2 -package old-locale-1.0.0.0 -package old-time-1.0.0.0 -package pcre-light-0.3.1 -package pretty-1.0.0.0 -package readline-1.0.1.0 -O ./mkcabal.hs [1 of 2] Compiling Licenses ( Licenses.hs, dist/build/mkcabal/mkcabal-tmp/Licenses.o ) [2 of 2] Compiling Main ( ./mkcabal.hs, dist/build/mkcabal/mkcabal-tmp/Main.o ) ./mkcabal.hs:397:49: Couldn't match expected type `Either [Char] b' against inferred type `Regex' In the second argument of `($)', namely `compile "(.*)[[:space:]]*<(.*)>" []' In the first argument of `match', namely `(either error id $ compile "(.*)[[:space:]]*<(.*)>" [])' In the second argument of `($)', namely `match (either error id $ compile "(.*)[[:space:]]*<(.*)>" []) s []'