Permalink
Browse files

conditionally build generic distributive code only on GHC >= 7.2

  • Loading branch information...
ekmett committed Apr 2, 2014
1 parent 09a4995 commit 58ea3d2eb3a4e54b719bb569a3b4290367af1e4c
Showing with 6 additions and 2 deletions.
  1. +6 −2 distributive.cabal
View
@@ -1,6 +1,6 @@
name: distributive
category: Data Structures
-version: 0.4.2
+version: 0.4.3
license: BSD3
cabal-version: >= 1.8
license-file: LICENSE
@@ -38,7 +38,11 @@ library
transformers-compat >= 0.1 && < 0.2
hs-source-dirs: src
- exposed-modules: Data.Distributive Data.Distributive.Generic
+ exposed-modules:
+ Data.Distributive
+
+ if impl(ghc>=7.2)
+ exposed-modules: Data.Distributive.Generic
if flag(lib-Werror)
ghc-options: -Werror

0 comments on commit 58ea3d2

Please sign in to comment.