Upgrade directory package dependency to 1.2 #327

Merged
merged 1 commit into from Nov 5, 2012

Conversation

Projects
None yet
3 participants
Contributor

bjin commented Nov 5, 2012

Fix compilation issue with GHC 7.6.1. In newer version of directory,
getModificationTime used UTCTime from time package as result
type. This change breaks the build of gitit.

@bjin bjin Upgrade directory package dependency to 1.2
Fix compilation issue with GHC 7.6.1. In newer version of directory,
`getModificationTime` used `UTCTime` from time package as result
type. This change breaks the build of gitit.
2b41606

jgm merged commit f3ce6fb into jgm:master Nov 5, 2012

Owner

jgm commented Dec 31, 2012

I just realized that there is a problem with requiring directory >= 1.2. This works fine with ghc 7.6, but not with 7.4, which is the version in the current Haskell Platform. (It is possible to compile against directory 1.2 even with ghc 7.4, but this causes problems when you try to use plugins.)

Is it possible to add code with CPP MIN_VERSION_directory so that gitit could work with directory versions < 1.2 as well?

Owner

jgm commented Jan 1, 2013

Update: I've made the modifications myself and will soon release an update.

yeled commented Mar 21, 2013

is this the issue i am having on debian squeeze?

15:02 wiki:~% sudo cabal install gitit
Resolving dependencies...
cabal: cannot configure zip-archive-0.1.3.4. It requires directory >=1.1
For the dependency on directory >=1.1 there are these packages:
directory-1.1.0.0, directory-1.1.0.1, directory-1.1.0.2, directory-1.2.0.0 and
directory-1.2.0.1. However none of them are available.
directory-1.1.0.0 was excluded because process-1.0.1.2 requires directory
==1.0.1.0
directory-1.1.0.0 was excluded because hpc-0.5.0.4 requires directory
==1.0.1.0
directory-1.1.0.0 was excluded because directory-1.0.1.0 was selected instead
directory-1.1.0.0 was excluded because bin-package-db-0.0.0.0 requires
directory ==1.0.1.0
directory-1.1.0.0 was excluded because Cabal-1.8.0.2 requires directory
==1.0.1.0
directory-1.1.0.0 was excluded because ghc-6.12.1 requires directory ==1.0.1.0
directory-1.1.0.1 was excluded because process-1.0.1.2 requires directory
==1.0.1.0
directory-1.1.0.1 was excluded because hpc-0.5.0.4 requires directory
==1.0.1.0
directory-1.1.0.1 was excluded because directory-1.0.1.0 was selected instead
directory-1.1.0.1 was excluded because bin-package-db-0.0.0.0 requires
directory ==1.0.1.0
directory-1.1.0.1 was excluded because Cabal-1.8.0.2 requires directory
==1.0.1.0
directory-1.1.0.1 was excluded because ghc-6.12.1 requires directory ==1.0.1.0
directory-1.1.0.2 was excluded because process-1.0.1.2 requires directory
==1.0.1.0
directory-1.1.0.2 was excluded because hpc-0.5.0.4 requires directory
==1.0.1.0
directory-1.1.0.2 was excluded because directory-1.0.1.0 was selected instead
directory-1.1.0.2 was excluded because bin-package-db-0.0.0.0 requires
directory ==1.0.1.0
directory-1.1.0.2 was excluded because Cabal-1.8.0.2 requires directory
==1.0.1.0
directory-1.1.0.2 was excluded because ghc-6.12.1 requires directory ==1.0.1.0
directory-1.2.0.0 was excluded because process-1.0.1.2 requires directory
==1.0.1.0
directory-1.2.0.0 was excluded because hpc-0.5.0.4 requires directory
==1.0.1.0
directory-1.2.0.0 was excluded because directory-1.0.1.0 was selected instead
directory-1.2.0.0 was excluded because bin-package-db-0.0.0.0 requires
directory ==1.0.1.0
directory-1.2.0.0 was excluded because Cabal-1.8.0.2 requires directory
==1.0.1.0
directory-1.2.0.0 was excluded because ghc-6.12.1 requires directory ==1.0.1.0
directory-1.2.0.1 was excluded because process-1.0.1.2 requires directory
==1.0.1.0
directory-1.2.0.1 was excluded because hpc-0.5.0.4 requires directory
==1.0.1.0
directory-1.2.0.1 was excluded because directory-1.0.1.0 was selected instead
directory-1.2.0.1 was excluded because bin-package-db-0.0.0.0 requires
directory ==1.0.1.0
directory-1.2.0.1 was excluded because Cabal-1.8.0.2 requires directory
==1.0.1.0
directory-1.2.0.1 was excluded because ghc-6.12.1 requires directory ==1.0.1.0
15:02 wiki:~%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment