Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8408061
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T23:32:20+00:00 2026-06-09T23:32:20+00:00

I forgot to enable building libs for profiling in my ~/.cabal/config before installing a

  • 0

I forgot to enable building libs for profiling in my ~/.cabal/config before installing a bunch of packages on a new machine and now a --reinstall world to try to fix the situation has left everything broken (naturally).

I think it’s a better use of my time to just purge everything. How do I do that correctly?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T23:32:22+00:00Added an answer on June 9, 2026 at 11:32 pm

    Cabal doesn’t keep track of what it’s installed, it just uses ghc’s library mechanism (or that of some other compiler if you’re not using ghc), so you can use rm -r ~/.ghc to remove all locally-installed libraries.

    If you have multiple ghc’s installed, and you only want to remove the libs for a specific ghc, delete the subdirectory corresponding to whichever ghc you want to remove.
    For example, I could remove everything I’ve installed for ghc-7.6.0 with rm -r ~/.ghc/x86_64-linux-7.6.0.20120810
    You can also use this to preserve your ghci_history if you like.

    ll ~/.ghc/
    total 24
    -rw-r--r-- 1 johnl johnl 2300 Aug 21 11:47 ghci_history
    drwxr-xr-x 3 johnl johnl 4096 Jun 17 19:09 x86_64-linux-6.12.3
    drwxr-xr-x 3 johnl johnl 4096 May 17 08:17 x86_64-linux-7.2.1
    drwxr-xr-x 3 johnl johnl 4096 May 16 17:34 x86_64-linux-7.4.1
    drwxr-xr-x 3 johnl johnl 4096 Jun 15 08:21 x86_64-linux-7.4.2
    drwxrwxr-x 3 johnl johnl 4096 Aug 15 12:37 x86_64-linux-7.6.0.20120810
    

    Edit: ~/.cabal/world is a list of installed packages with version constraints as specified by the user. So in most cases, it would include e.g. mtl -any. If you’ve installed packages with specific versions, such as by issuing cabal install mtl-2.1.1, it will record that version. You should be able to either delete the world file and start over, or if you look it over and the dependencies are acceptable, you could try just running cabal install world. Or you could ignore it and not use cabal’s world support (that’s what I do).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm in an interesting problem.I forgot I'm using 64bit machine & OS and wrote
I have done this before but I forgot where in my app I have
I use a global config.h in my project to define various flags that enable/disable
I forgot to create my application with the -T argument and now it's installed
I forgot the name of that application tool. anyone here remembers it? It let's
I forgot to include the programming language (It should be in the C language).
EDIT: Forgot to remind the reader that I remembered to set templateSettings as follows:
EDIT Sorry I forgot the most important part here. Each key can have more
I stumbled on a site yesterday and forgot to bookmark the url. I'm stumped
In the DOS era I used a text editor (forgot the name) which had

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.