[Haskell-cafe] Error during hlint install ?

Neil Mitchell ndmitchell at gmail.com
Sat Aug 29 12:26:34 EDT 2009


Hi Dusan,

>  Am I doing something wrong if I get the following error during cabal
> installation of hlint? Is there any way how to solve it?

The problem is that version 1.15 of hscolour released recently is
incompatible with 1.13 which HLint was being tested against.

I've now switched over to hscolour 1.15 and released HLint 1.6.6,
which does work with hscolour 1.15. This should solve your problem.

I didn't spot this email as I've been busy recently and have not had a
chance to read through haskell-cafe, but I did get your personal email
(but replied to everyone so that everyone can see the solution). In
general when emailing about my packages it's usually best to email
haskell-cafe and CC me.

Thanks for reporting the issue, and do let me know if the new version
still doesn't work. To upgrade you should be able to do:

cabal update && cabal install hlint

Thanks

Neil


>
> I run on:
> Linux pc 2.6.30-ARCH #1 SMP PREEMPT Fri Jul 31 07:30:28 CEST 2009 x86_64
> Intel(R) Core(TM)2 Quad CPU Q9300 @ 2.50GHz GenuineIntel GNU/Linux
> The Glorious Glasgow Haskell Compilation System, version 6.10.4
>
> Error:
> cabal install hlint
> Resolving dependencies...
> Configuring hlint-1.6.5...
> Preprocessing executables for hlint-1.6.5...
> Building hlint-1.6.5...
> [ 1 of 25] Compiling Paths_hlint      ( dist/build/autogen/Paths_hlint.hs,
> dist/build/hlint/hlint-tmp/Paths_hlint.o )
> [ 2 of 25] Compiling Parallel         ( src/Parallel.hs,
> dist/build/hlint/hlint-tmp/Parallel.o )
> [ 3 of 25] Compiling HSE.Generics     ( src/HSE/Generics.hs,
> dist/build/hlint/hlint-tmp/HSE/Generics.o )
> [ 4 of 25] Compiling HSE.NameMatch    ( src/HSE/NameMatch.hs,
> dist/build/hlint/hlint-tmp/HSE/NameMatch.o )
> [ 5 of 25] Compiling Util             ( src/Util.hs,
> dist/build/hlint/hlint-tmp/Util.o )
> [ 6 of 25] Compiling HSE.Util         ( src/HSE/Util.hs,
> dist/build/hlint/hlint-tmp/HSE/Util.o )
> [ 7 of 25] Compiling HSE.Match        ( src/HSE/Match.hs,
> dist/build/hlint/hlint-tmp/HSE/Match.o )
> [ 8 of 25] Compiling HSE.Bracket      ( src/HSE/Bracket.hs,
> dist/build/hlint/hlint-tmp/HSE/Bracket.o )
> [ 9 of 25] Compiling HSE.Evaluate     ( src/HSE/Evaluate.hs,
> dist/build/hlint/hlint-tmp/HSE/Evaluate.o )
> [10 of 25] Compiling HSE.All          ( src/HSE/All.hs,
> dist/build/hlint/hlint-tmp/HSE/All.o )
> [11 of 25] Compiling CmdLine          ( src/CmdLine.hs,
> dist/build/hlint/hlint-tmp/CmdLine.o )
> [12 of 25] Compiling Type             ( src/Type.hs,
> dist/build/hlint/hlint-tmp/Type.o )
> [13 of 25] Compiling Hint.Naming      ( src/Hint/Naming.hs,
> dist/build/hlint/hlint-tmp/Hint/Naming.o )
> [14 of 25] Compiling Hint.Bracket     ( src/Hint/Bracket.hs,
> dist/build/hlint/hlint-tmp/Hint/Bracket.o )
> [15 of 25] Compiling Hint.Lambda      ( src/Hint/Lambda.hs,
> dist/build/hlint/hlint-tmp/Hint/Lambda.o )
> [16 of 25] Compiling Hint.Monad       ( src/Hint/Monad.hs,
> dist/build/hlint/hlint-tmp/Hint/Monad.o )
> [17 of 25] Compiling Hint.ListRec     ( src/Hint/ListRec.hs,
> dist/build/hlint/hlint-tmp/Hint/ListRec.o )
> [18 of 25] Compiling Hint.List        ( src/Hint/List.hs,
> dist/build/hlint/hlint-tmp/Hint/List.o )
> [19 of 25] Compiling Hint.Match       ( src/Hint/Match.hs,
> dist/build/hlint/hlint-tmp/Hint/Match.o )
> [20 of 25] Compiling Settings         ( src/Settings.hs,
> dist/build/hlint/hlint-tmp/Settings.o )
> [21 of 25] Compiling Report           ( src/Report.hs,
> dist/build/hlint/hlint-tmp/Report.o )
>
> src/Report.hs:49:22:
>   Couldn't match expected type `String' against inferred type `Bool'
>   In the second argument of `hscolour', namely `True'
>   In the expression: hscolour False True ""
>   In the definition of `code': code = hscolour False True ""
> cabal: Error: some packages failed to install:
> hlint-1.6.5 failed during the building phase. The exception was:
> exit: ExitFailure 1
>
>
> Regards
>
>  Dušan
>
>
> P.S.
> Registered packages:
> Cabal-1.6.0.3, HUnit-1.2.0.3, QuickCheck-1.2.0.0, array-0.2.0.0,
>   base-3.0.3.1, base-4.1.0.0, bytestring-0.9.1.4, containers-0.2.0.1,
>   cpphs-1.8, directory-1.0.0.3, (dph-base-0.3), (dph-par-0.3),
>   (dph-prim-interface-0.3), (dph-prim-par-0.3), (dph-prim-seq-0.3),
>   (dph-seq-0.3), extensible-exceptions-0.1.1.0, filepath-1.1.0.2,
>   (ghc-6.10.4), ghc-prim-0.1.0.0, haddock-2.4.2, haskell-src-1.0.1.3,
>   haskell-src-exts-1.0.1, haskell98-1.0.1.0, hpc-0.5.0.3,
>   hscolour-1.15, html-1.0.1.2, integer-0.1.0.1, mtl-1.1.0.2,
>   network-2.2.1.2, old-locale-1.0.0.1, old-time-1.0.0.2,
>   packedstring-0.1.0.1, parallel-1.1.0.1, parsec-2.1.0.1,
>   pretty-1.0.1.0, process-1.0.1.1, random-1.0.0.1,
>   regex-base-0.72.0.2, regex-compat-0.71.0.1, regex-posix-0.72.0.3,
>   rts-1.0, stm-2.1.1.2, syb-0.1.0.1, template-haskell-2.3.0.1,
>   time-1.1.4, uniplate-1.2.0.3, unix-2.3.2.0, xhtml-3000.2.0.1
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>


More information about the Haskell-Cafe mailing list