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

  • Home
  • SEARCH
  • 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 7010567
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T22:00:30+00:00 2026-05-27T22:00:30+00:00

I’m trying to upload my first package to Hackage (yay!), and I got this

  • 0

I’m trying to upload my first package to Hackage (yay!), and I got this error:

The dependency ‘build-depends: base’ does not specify an upper bound on the version number. Each major release of the ‘base’ package changes the API in various ways and most packages will need some changes to compile with it. The recommended practise is to specify an upper bound on the version of the ‘base’ package. This ensures your package will continue to build when a new major version of the ‘base’ package is released. If you are not sure what upper bound to use then use the next major version. For example if you have tested your package with ‘base’ version 2 and 3 then use ‘build-depends: base >= 2 && < 4’.

Which seems like a perfectly acceptable reason to decline my package.

Is there a good tool to test my package against various versions of base so I can see what the bounds are (rather than just guessing)? The best I can think of is to use some shell scripting to do something like:

% for v in $BASE_VERSIONS
do
  cabal install base-$v &&\
  cabal configure --enable-tests &&\
  cabal build &&\
  cabal test && echo "$v ok" || echo "$v fail"
done

But I feel like there should be something better.

  • 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-27T22:00:31+00:00Added an answer on May 27, 2026 at 10:00 pm

    This is a very bad idea! You must not upgrade base or any other packages that come with GHC (the ones with - in the tag column), or everything will break horribly.

    The only way to test with an older version of base is to install an older GHC and test with that. I would suggest just trying it on 7.0.4 and 7.2.2; supporting older versions is probably a waste of time these days.

    Failing that, just specify base >= VERSION && < 5, where VERSION is the version your GHC has. Or base == 4.* and hope for the best 🙂

    In all seriousness, base’s API doesn’t really change all that much, so you’re unlikely to run into many problems with this.

    For testing your program with various versions of packages in general without disturbing your main ~/.cabal repository, I strongly recommend cabal-dev; something like

    $ cabal-dev install 'pkg==VERSION'
    $ cabal-dev install
    $ cabal-dev test
    

    should do it.

    By the way, you can do cabal check to get warned about problems like this before uploading your package to Hackage.

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

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
Does anyone know how can I replace this 2 symbol below from the string
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
For some reason, after submitting a string like this Jack’s Spindle from a text
this is what i have right now Drawing an RSS feed into the php,
I've got a string that has curly quotes in it. I'd like to replace

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.