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 6087295
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T11:51:16+00:00 2026-05-23T11:51:16+00:00

Forgive me if this is a FAQ but I’m a bit puzzled about how

  • 0

Forgive me if this is a FAQ but I’m a bit puzzled about how to get around this problem properly.

I recently downloaded the package TagSoup which installed fine with the latest version 0.12.2

Then I installed the package download-curl which installed fine with the latest version. What I failed to realise was, download-curl depends on TagSoup with a version =< 0.11, so as part of the installation process Cabal downloaded an older version of TagSoup too.

This is a problem because I want to use both libraries (the latest version of TagSoup AND download-curl) – and when you do for some reason GHCI gets in a bit of a mess.

My question is, is there a way of specifying versions in your import statements, i.e.

import Text.Html.TagSoup-0.12.2

or is this a no go? I’m thinking not.

The only way I got around this was to download the download-curl source, modify the .cabal file to use TagSoup-0.12.2 and reinstalled the package with my little “hack” in place which works as I would expect it to – but I don’t think this is the solution

Any help would be appreciated

  • 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-05-23T11:51:16+00:00Added an answer on May 23, 2026 at 11:51 am

    Normally one specifies the required version in the .cabal file. There is an extension syntax for specific package imports (-XPackageImports) but it’s usually better to let Cabal deal.

    That said, yes, if you need to use both then you enter the dark realm of diamond dependencies. Yours is pretty much the only solution available currently. -XPackageImports is not a good idea here, as trying to use two versions of the same library in the same program probably won’t link and almost certainly will dump core at runtime if it does manage to link without duplicate symbols.

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

Sidebar

Related Questions

Forgive me if this is a dumb beginners problem, but I really don't get
Forgive me if this is a simple problem but I can't seem to find
Forgive me if this has been asked before; I did a search but couldn't
Forgive me if this has been asked before, but I assure you I've scoured
Forgive me if this is a tried question, but I'm having a little difficulty
Please forgive if this question has been asked numerous times. I recently installed Eclipse
Forgive me if this has been asked repeatedly, but I couldn't find an example
Forgive me for this noob question, but is there such a setting that sets
Forgive me if this is a particularly stupid question! mysql_query($query) returns a boolean, but
Forgive me if this is the wrong place but I am curious as to

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.