根据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