Skip to content

Commit

Permalink
Relax requirement for base version
Browse files Browse the repository at this point in the history
I failed to install erd on Ubuntu 12.04 LTS due to the higher version
of base library required: 4.7 vs 4.5.

After unsuccessful attempts to:
  1. downloading latest version of Haskell Platform
     (no 32 bits version found)
  2. installing latest version of Haskell Platform from source
     (requires higher versions of GHC/cabal than available in Ubuntu 12.04)
  3. installing a higher version of GHC from source
     (requires a higher version of GHC than available in Ubuntu 12.04)

I then thought of changing the requirement in erd itself (which works).

I have set an upper bound for the version to the next major version,
which I have read is a requirement for the package to be accepted
on hackage, and have set the lower bound to the version of the base
package which is installed in Ubuntu 12.04 LTS.

I found this information with:

  cabal info base | less

It reads:

  Versions installed: 4.5.0.0

Note that a lower version of the base library would probably work
as well, and this bound could be lowered further if confirmed.
  • Loading branch information
eric-brechemier committed Apr 13, 2015
1 parent 6c3de4a commit 51b0807
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erd.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ executable erd
ghc-options: -Wall -fno-warn-name-shadowing -fno-warn-unused-do-bind
other-modules: Config, ER, Parse
build-depends:
base == 4.7.*
base >= 4.5 && < 5
, graphviz == 2999.*
, text == 1.*
, parsec == 3.1.*
Expand Down

0 comments on commit 51b0807

Please sign in to comment.