*** setup configure Configuring jarfind-0.1.0.1... Flags chosen: splitbase=True Dependency array -any: using array-0.2.0.0 Dependency base ==3.*: using base-3.0.3.1 Dependency binary -any: using binary-0.5.0.2 Dependency bytestring >=0.9.0: using bytestring-0.9.1.5 Dependency regex-pcre >=0.94.1: using regex-pcre-0.94.1 Dependency zip-archive >=0.1.1.2: using zip-archive-0.1.1.3 Warning: This package indirectly depends on multiple versions of the same package. This is highly likely to cause a compile failure. package zip-archive-0.1.1.3 requires binary-0.5.0.1 package jarfind-0.1.0.1 requires binary-0.5.0.2 package zlib-0.5.2.0 requires bytestring-0.9.1.4 package zip-archive-0.1.1.3 requires bytestring-0.9.1.4 package utf8-string-0.3.5 requires bytestring-0.9.1.4 package regex-pcre-0.94.1 requires bytestring-0.9.1.4 package regex-base-0.93.1 requires bytestring-0.9.1.4 package digest-0.0.0.6 requires bytestring-0.9.1.4 package binary-0.5.0.2 requires bytestring-0.9.1.4 package binary-0.5.0.1 requires bytestring-0.9.1.4 package jarfind-0.1.0.1 requires bytestring-0.9.1.5 Using Cabal-1.7.3 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/jarfind-0.1.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/jarfind-0.1.0.1 Documentation installed in: /usr/local/tmp/archive/install/share/doc/jarfind-0.1.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.4 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 lhc found No lhc-pkg found 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 /usr/bin/gcc /tmp/366.c -o /tmp/366 -D__GLASGOW_HASKELL__=610 -I. -I/usr/local/lib/ghc-6.10.2/directory-1.0.0.3/include -I/usr/local/lib/ghc-6.10.2/unix-2.3.2.0/include -I/usr/local/lib/ghc-6.10.2/old-time-1.0.0.2/include -I/usr/local/tmp/archive/install/lib/bytestring-0.9.1.5/ghc-6.10.2/include -I/usr/local/lib/ghc-6.10.2/bytestring-0.9.1.4/include -I/usr/local/lib/ghc-6.10.2/base-4.1.0.0/include -I/usr/local/lib/ghc-6.10.2/include -IPAPI_INCLUDE_DIR *** setup build Creating dist/build (and its parents) Creating dist/build/autogen (and its parents) Preprocessing executables for jarfind-0.1.0.1... Building jarfind-0.1.0.1... Building executable jarf... Creating dist/build/jarf (and its parents) Creating dist/build/jarf/jarf-tmp (and its parents) /usr/local/bin/ghc --make -o dist/build/jarf/jarf -hide-all-packages -package-conf dist/package.conf.inplace -i -idist/build/jarf/jarf-tmp -i. -idist/build/autogen -Idist/build/autogen -Idist/build/jarf/jarf-tmp -optP-include -optPdist/build/autogen/cabal_macros.h -odir dist/build/jarf/jarf-tmp -hidir dist/build/jarf/jarf-tmp -stubdir dist/build/jarf/jarf-tmp -package array-0.2.0.0 -package base-3.0.3.1 -package binary-0.5.0.2 -package bytestring-0.9.1.5 -package regex-pcre-0.94.1 -package zip-archive-0.1.1.3 -O -O2 -XBangPatterns ./Main.hs [1 of 1] Compiling Main ( Main.hs, dist/build/jarf/jarf-tmp/Main.o ) Main.hs:104:23: No instance for (RegexLike Regex B.ByteString) arising from a use of `accessAndRegex' at Main.hs:104:23-92 Possible fix: add an instance declaration for (RegexLike Regex B.ByteString) In the expression: accessAndRegex (access (typeAccess a)) (typeRegex a) clsAccess clsName In the definition of `typeFilter': typeFilter = accessAndRegex (access (typeAccess a)) (typeRegex a) clsAccess clsName In the definition of `parseArgs': parseArgs a paths = Args dataSource (SearchSource typeFilter) searchTarget where searchTarget = case (memberRegex a, memberAccess a, target a) of { (Nothing, Nothing, Nothing) -> SearchClass _ -> SearchMember memberFilter } searchMembers = isJust (memberRegex a) typeFilter = accessAndRegex (access (typeAccess a)) (typeRegex a) clsAccess clsName memberFilter mem = (memKind `maybeEq` kind mem) && accessAndRegex (access (memberAccess a)) (memberRegex a) mAccess mName mem where kind (Field _ _ _) = FieldKind kind (Method _ _ _) = MethodKind .... Main.hs:217:33: Couldn't match expected type `bytestring-0.9.1.4:Data.ByteString.Lazy.Internal.ByteString' against inferred type `B.ByteString' Expected type: IO bytestring-0.9.1.4:Data.ByteString.Lazy.Internal.ByteString Inferred type: IO B.ByteString In the second argument of `liftM', namely `B.readFile jar' In a stmt of a 'do' expression: archive <- toArchive `liftM` B.readFile jar Main.hs:245:56: Couldn't match expected type `bytestring-0.9.1.4:Data.ByteString.Lazy.Internal.ByteString' against inferred type `B.ByteString' In the second argument of `runGet', namely `cpData' In the expression: (do skip (fromIntegral iData) readWord16) `runGet` cpData In the definition of `getWord16FromCP': getWord16FromCP (ConstantPool cpPos cpData) iData = (do skip (fromIntegral iData) readWord16) `runGet` cpData Main.hs:262:17: Couldn't match expected type `B.ByteString' against inferred type `bytestring-0.9.1.4:Data.ByteString.Lazy.Internal.ByteString' In the expression: runGet classFileParser In the definition of `parseClassFile': parseClassFile = runGet classFileParser Main.hs:316:36: Couldn't match expected type `B.ByteString' against inferred type `bytestring-0.9.1.4:Data.ByteString.Lazy.Internal.ByteString' In the second argument of `ConstantPool', namely `bs' In the first argument of `return', namely `(ConstantPool cpPosArray bs)' In the expression: return (ConstantPool cpPosArray bs) *** Trying again with preferred-versions *** setup configure Configuring jarfind-0.1.0.1... Flags chosen: splitbase=True Dependency array -any: using array-0.2.0.0 Dependency base ==3.*: using base-3.0.3.1 Dependency binary -any: using binary-0.5.0.2 Dependency bytestring >=0.9.0: using bytestring-0.9.1.5 Dependency regex-pcre >=0.94.1: using regex-pcre-0.94.1 Dependency zip-archive >=0.1.1.2: using zip-archive-0.1.1.3 Warning: This package indirectly depends on multiple versions of the same package. This is highly likely to cause a compile failure. package zip-archive-0.1.1.3 requires binary-0.5.0.1 package jarfind-0.1.0.1 requires binary-0.5.0.2 package zlib-0.5.2.0 requires bytestring-0.9.1.4 package zip-archive-0.1.1.3 requires bytestring-0.9.1.4 package utf8-string-0.3.5 requires bytestring-0.9.1.4 package regex-pcre-0.94.1 requires bytestring-0.9.1.4 package regex-base-0.93.1 requires bytestring-0.9.1.4 package digest-0.0.0.6 requires bytestring-0.9.1.4 package binary-0.5.0.2 requires bytestring-0.9.1.4 package binary-0.5.0.1 requires bytestring-0.9.1.4 package jarfind-0.1.0.1 requires bytestring-0.9.1.5 Using Cabal-1.7.3 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/jarfind-0.1.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/jarfind-0.1.0.1 Documentation installed in: /usr/local/tmp/archive/install/share/doc/jarfind-0.1.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.4 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 lhc found No lhc-pkg found 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 /usr/bin/gcc /tmp/407.c -o /tmp/407 -D__GLASGOW_HASKELL__=610 -I. -I/usr/local/lib/ghc-6.10.2/directory-1.0.0.3/include -I/usr/local/lib/ghc-6.10.2/unix-2.3.2.0/include -I/usr/local/lib/ghc-6.10.2/old-time-1.0.0.2/include -I/usr/local/tmp/archive/install/lib/bytestring-0.9.1.5/ghc-6.10.2/include -I/usr/local/lib/ghc-6.10.2/bytestring-0.9.1.4/include -I/usr/local/lib/ghc-6.10.2/base-4.1.0.0/include -I/usr/local/lib/ghc-6.10.2/include -IPAPI_INCLUDE_DIR *** setup build Creating dist/build (and its parents) Creating dist/build/autogen (and its parents) Preprocessing executables for jarfind-0.1.0.1... Building jarfind-0.1.0.1... Building executable jarf... Creating dist/build/jarf (and its parents) Creating dist/build/jarf/jarf-tmp (and its parents) /usr/local/bin/ghc --make -o dist/build/jarf/jarf -hide-all-packages -package-conf dist/package.conf.inplace -i -idist/build/jarf/jarf-tmp -i. -idist/build/autogen -Idist/build/autogen -Idist/build/jarf/jarf-tmp -optP-include -optPdist/build/autogen/cabal_macros.h -odir dist/build/jarf/jarf-tmp -hidir dist/build/jarf/jarf-tmp -stubdir dist/build/jarf/jarf-tmp -package array-0.2.0.0 -package base-3.0.3.1 -package binary-0.5.0.2 -package bytestring-0.9.1.5 -package regex-pcre-0.94.1 -package zip-archive-0.1.1.3 -O -O2 -XBangPatterns ./Main.hs [1 of 1] Compiling Main ( Main.hs, dist/build/jarf/jarf-tmp/Main.o ) Main.hs:104:23: No instance for (RegexLike Regex B.ByteString) arising from a use of `accessAndRegex' at Main.hs:104:23-92 Possible fix: add an instance declaration for (RegexLike Regex B.ByteString) In the expression: accessAndRegex (access (typeAccess a)) (typeRegex a) clsAccess clsName In the definition of `typeFilter': typeFilter = accessAndRegex (access (typeAccess a)) (typeRegex a) clsAccess clsName In the definition of `parseArgs': parseArgs a paths = Args dataSource (SearchSource typeFilter) searchTarget where searchTarget = case (memberRegex a, memberAccess a, target a) of { (Nothing, Nothing, Nothing) -> SearchClass _ -> SearchMember memberFilter } searchMembers = isJust (memberRegex a) typeFilter = accessAndRegex (access (typeAccess a)) (typeRegex a) clsAccess clsName memberFilter mem = (memKind `maybeEq` kind mem) && accessAndRegex (access (memberAccess a)) (memberRegex a) mAccess mName mem where kind (Field _ _ _) = FieldKind kind (Method _ _ _) = MethodKind .... Main.hs:217:33: Couldn't match expected type `bytestring-0.9.1.4:Data.ByteString.Lazy.Internal.ByteString' against inferred type `B.ByteString' Expected type: IO bytestring-0.9.1.4:Data.ByteString.Lazy.Internal.ByteString Inferred type: IO B.ByteString In the second argument of `liftM', namely `B.readFile jar' In a stmt of a 'do' expression: archive <- toArchive `liftM` B.readFile jar Main.hs:245:56: Couldn't match expected type `bytestring-0.9.1.4:Data.ByteString.Lazy.Internal.ByteString' against inferred type `B.ByteString' In the second argument of `runGet', namely `cpData' In the expression: (do skip (fromIntegral iData) readWord16) `runGet` cpData In the definition of `getWord16FromCP': getWord16FromCP (ConstantPool cpPos cpData) iData = (do skip (fromIntegral iData) readWord16) `runGet` cpData Main.hs:262:17: Couldn't match expected type `B.ByteString' against inferred type `bytestring-0.9.1.4:Data.ByteString.Lazy.Internal.ByteString' In the expression: runGet classFileParser In the definition of `parseClassFile': parseClassFile = runGet classFileParser Main.hs:316:36: Couldn't match expected type `B.ByteString' against inferred type `bytestring-0.9.1.4:Data.ByteString.Lazy.Internal.ByteString' In the second argument of `ConstantPool', namely `bs' In the first argument of `return', namely `(ConstantPool cpPosArray bs)' In the expression: return (ConstantPool cpPosArray bs)