1

This answer to the problem I'm having suggests running e.g. sudo apt-get install ghc-prof on Debian systems to install base libraries with profiling support. However I've installed Haskell Platform (through the 'Generic' option). How do I (re)install ghc/base with profiling support?

andrepd
  • 587
  • 6
  • 20
  • 1
    I would recommend you to use stack: https://haskell-lang.org/get-started – Sibi Jan 28 '18 at 20:48
  • But I am using Haskell Platform, as suggested here: https://www.haskell.org/downloads – andrepd Jan 28 '18 at 21:38
  • 1
    The download page also mentions Stack. IMO, it's much easier and better to just rely on Stack for managing your GHCs. – Sibi Jan 28 '18 at 21:47
  • Okay, but the Haskell Platform feature specifically list mentions "Support for profiling and code coverage analysis". I don't see how to enable this, though. – andrepd Jan 29 '18 at 15:04
  • 1
    @Sibi you really need to stop commenting on every question by telling people to use a different tool. It is not appropriate. – sclv Feb 02 '18 at 22:14

1 Answers1

1

The Haskell Platform comes with profiling libraries for base. If you've installed the platform, and are using the platform-installed libraries, then you should "just" have it already. The only possibility is if you've still got your distro-installed GHC in your path, and are using that instead...

sclv
  • 38,665
  • 7
  • 99
  • 204