Skip to content
Browse files

smarter check for old versions of typeable using MIN_VERSION_base

  • Loading branch information...
1 parent f0e575f commit f3f666ce7a24ce6019a17249407759e796891eb5 @ekmett committed Apr 15, 2012
Showing with 7 additions and 14 deletions.
  1. +1 −1 Control/Comonad.hs
  2. +1 −0 Data/Functor/Extend.hs
  3. +5 −13 comonad.cabal
View
2 Control/Comonad.hs
@@ -100,7 +100,7 @@ instance Typeable1 w => Typeable2 (Cokleisli w) where
wa = undefined
cokleisliTyCon :: TyCon
-#ifdef OLD_TYPEABLE
+#if !MIN_VERSION_base(4,4,0)
cokleisliTyCon = mkTyCon "Control.Comonad.Cokleisli"
#else
cokleisliTyCon = mkTyCon3 "comonad" "Control.Comonad" "Cokleisli"
View
1 Data/Functor/Extend.hs
@@ -1,3 +1,4 @@
+{-# LANGUAGE CPP #-}
-----------------------------------------------------------------------------
-- |
-- Module : Data.Functor.Extend
View
18 comonad.cabal
@@ -1,14 +1,15 @@
name: comonad
category: Control, Comonads
-version: 1.1.1.3
+version: 1.1.1.4
license: BSD3
cabal-version: >= 1.6
license-file: LICENSE
author: Edward A. Kmett
maintainer: Edward A. Kmett <ekmett@gmail.com>
stability: provisional
homepage: http://github.com/ekmett/comonad/
-copyright: Copyright (C) 2008-2011 Edward A. Kmett, Copyright (C) 2004-2008 Dave Menendez
+copyright: Copyright (C) 2008-2012 Edward A. Kmett,
+ Copyright (C) 2004-2008 Dave Menendez
synopsis: Haskell 98 compatible comonads
description: Haskell 98 compatible comonads
build-type: Simple
@@ -17,24 +18,15 @@ source-repository head
type: git
location: git://github.com/ekmett/comonad.git
-flag OldTypeable
- default: False
- manual: False
-
library
- if flag(OldTypeable)
- build-depends: base >= 4 && < 4.4
- else
- build-depends: base >= 4.4 && < 5
+ other-extensions: CPP
build-depends:
+ base >= 4 && < 5,
transformers >= 0.2 && < 0.4,
containers >= 0.3 && < 0.5,
semigroups >= 0.8.2 && < 0.9
- if flag(OldTypeable)
- cpp-options: -DOLD_TYPEABLE
-
exposed-modules:
Control.Comonad
Data.Functor.Extend

0 comments on commit f3f666c

Please sign in to comment.
Something went wrong with that request. Please try again.