Difference between revisions of "Upgrading packages"
Jump to navigation
Jump to search
(Added link to "2.0 migration guide"; changed link "/Updating to GHC 7.6" to "/Updating to GHC 7"; swapped links) |
|||
Line 4: | Line 4: | ||
For older versions of this document: |
For older versions of this document: |
||
+ | * [https://github.com/haskell/cabal/wiki/2.0-migration-guide 2.0 migration guide] (upgrading for Cabal 2.0) |
||
⚫ | |||
* [[/Updating to GHC 6.10]] |
* [[/Updating to GHC 6.10]] |
||
* [[/Updating to GHC 6.8]] |
* [[/Updating to GHC 6.8]] |
||
⚫ | |||
Most new tips for fixing build failures are tracked at https://github.com/haskell-infra/hackage-trustees/blob/master/cookbook.md |
Most new tips for fixing build failures are tracked at https://github.com/haskell-infra/hackage-trustees/blob/master/cookbook.md |
Revision as of 14:57, 19 March 2018
A list of things that need updating when porting packages to newer library/cabal versions.
If you maintain a Haskell package this is for you. For older versions of this document:
- 2.0 migration guide (upgrading for Cabal 2.0)
- /Updating to GHC 7
- /Updating to GHC 6.10
- /Updating to GHC 6.8
Most new tips for fixing build failures are tracked at https://github.com/haskell-infra/hackage-trustees/blob/master/cookbook.md
This page only tracks updates through 7.0 and earlier.
Updating to GHC 7.0
When upgrading to GHC 7.0, any of your packages that worked against the base-3 library will need to be updated to the base-4.
Compatibility with older GHC
Use cabal's conditional thingy, checking on impl(ghc >= x.yz). E.g:
ghc-options: -Wall -fexcess-precision -funbox-strict-fields if impl(ghc >= 6.12) ghc-options: -fno-warn-unused-do-bind