Reputation: 504
I was trying to pu my GHCi pretty using this: http://www.reddit.com/r/haskell/comments/144biy/pretty_output_in_ghci_howto_in_comments/
But while runnig GHCi this error appear and I cannot apply the colour changes.
user@pcname:~$ ghci
GHCi, version 7.6.3: http://www.haskell.org/ghc/ :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
<no location info>:
Could not find module `IPPrint'
It is not a module in the current program, or in any known package.
<no location info>:
Could not find module `Language.Haskell.HsColour'
It is not a module in the current program, or in any known package.
<no location info>:
Could not find module `Language.Haskell.HsColour.Colourise'
It is not a module in the current program, or in any known package.
<no location info>:
Could not find module `Language.Haskell.HsColour.Output'
It is not a module in the current program, or in any known package.
<interactive>:7:21:
Failed to load interface for `HsColour'
Use -v to see a list of the files searched for.
<interactive>:9:26:
Failed to load interface for `HsColour'
Use -v to see a list of the files searched for.
Top level: Not in scope: `myPrint'
Top level: Not in scope: `myPrint'
<interactive>:19:26:
Failed to load interface for `HsColour'
Use -v to see a list of the files searched for.
What do you suggest?
I'm currently using Ubuntu 14.04 and GHCi 7.6.3
Upvotes: 4
Views: 699
Reputation:
Summarising the comments: you need to install the Haskell modules hscolour
and ipprint
. For the second, you need to have the libbz2-dev
package installed. So:
sudo apt-get install libbz2-dev
cabal update
cabal install ipprint hscolour
Upvotes: 2