根据iHaskell页面,应该可以从Hackage
安装cabal install ihaskell
然而,当我这样做时,它无法安装某些软件包:
...
[ 7 of 44] Compiling HsColour ( src/HsColour.hs, dist/build/HsColour.o )
src/HsColour.hs:25:16:
Couldn't match type `Int' with `[Char]'
Expected type: String -> String
Actual type: Int -> String -> String
In the return type of a call of `CSS.hscolour'
Probable cause: `CSS.hscolour' is applied to too few arguments
In the expression: CSS.hscolour False
In an equation for `hsColourHTML':
hsColourHTML = CSS.hscolour False
Failed to install hlint-1.9.10
cabal: Error: some packages failed to install:
hlint-1.9.10 failed during the building phase. The exception was:
ExitFailure 1
ihaskell-0.5.0.0 depends on hlint-1.9.10 which failed to install.
建议hlint-1.9.10
的内容。但是,hlint-1.9.17
实际上存在。
ubuntu:~$ hlint -V
HLint v1.9.17, (C) Neil Mitchell 2006-2015