0

I am trying to get this coloured ghci prompt to work. I am getting the following error which I suspect is due to cabal not updating the right package. Anyone has any idea?

; cabal install IPPrint 
[...]
System/Unix/Chroot.hs:23:49:
    Module `System.Process' does not export `showCommandForUser'
cabal: Error: some packages failed to install:
Extra-1.42 depends on Unixutils-1.52 which failed to install.
Unixutils-1.52 failed during the building phase. The exception was:
ExitFailure 1
ipprint-0.4.1 depends on Unixutils-1.52 which failed to install.

The prompt should look like this:

haskell ghci colour prompt

Sardathrion - against SE abuse
  • 17,269
  • 27
  • 101
  • 156

1 Answers1

1

showCommandForUser was added in version 1.1 of the process package. You need ghc-7.2 or later to have that (process is one of the boot packages, installing a version other than that came with GHC is not recommended unless you know very well what you are doing; reinstalling boot packages is likely to cause breakage among the installed packages).

If you have an older GHC, upgrading GHC is a good idea anyway.

Daniel Fischer
  • 181,706
  • 17
  • 308
  • 431