Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Haskell reinstall base with profiling enabled

I am trying reinstall my Haskell libraries with profiling enabled by following the instructions listed here

However, whenever cabal attempts to reinstall one of the libraries I get the following message:

LibraryNameHere.hs:1:1:
    Could not find module `Prelude'
    Perhaps you haven't installed the profiling libraries for package `base'?
    Use -v to see a list of the files searched for.

When I try to reinstall base with profiling enabled I get the following messages:

me@machine:~/.cabal/$ cabal install -p base
Resolving dependencies...
All the requested packages are already installed:
base-4.5.0.0
Use --reinstall if you want to reinstall anyway.
me@machine:~/.cabal/$ cabal install --reinstall -p base
Resolving dependencies...
cabal: Could not resolve dependencies:
next goal: base (user goal)
rejecting: base-4.7.0.0, 4.6.0.1, 4.6.0.0, 4.5.1.0, 4.5.0.0, 4.4.1.0, 4.4.0.0,
4.3.1.0, 4.3.0.0, 4.2.0.2, 4.2.0.1, 4.2.0.0, 4.1.0.0, 4.0.0.0 (only already
installed instances can be used)
rejecting: base-3.0.3.2 (conflict: base => base>=4.0 && <4.3)
rejecting: base-3.0.3.1 (conflict: base => base>=4.0 && <4.2)

How do I reinstall base with profiling enabled?

like image 862
recursion.ninja Avatar asked May 03 '14 22:05

recursion.ninja


1 Answers

If the base profiling libraries were not included in the your Haskell/GHC installation by default, they will be included through your OS's package manager in a separate package.

Debian Linux Systems:

sudo apt-get install ghc-prof

like image 185
recursion.ninja Avatar answered Oct 03 '22 23:10

recursion.ninja