Permalink
Browse files

failure 0.1.0

  • Loading branch information...
snoyberg committed May 12, 2010
1 parent a909854 commit c4e5c533d875db18e71b93e536d010029a70ce91
Showing with 10 additions and 15 deletions.
  1. +7 −4 Control/Monad/Attempt.hs
  2. +3 −11 control-monad-attempt.cabal
View
@@ -2,6 +2,7 @@
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE Rank2Types #-}
{-# LANGUAGE CPP #-}
+{-# LANGUAGE PackageImports #-}
---------------------------------------------------------
--
-- Module : Control.Monad.Attempt
@@ -27,12 +28,14 @@ module Control.Monad.Attempt
import Data.Attempt
import Control.Applicative
import Control.Monad
-#if TRANSFORMERS_02
-import Control.Monad.Trans.Class
-import Control.Monad.IO.Class
+
+#if MIN_VERSION_transformers(0,2,0)
+import "transformers" Control.Monad.Trans.Class
+import "transformers" Control.Monad.IO.Class
#else
-import Control.Monad.Trans
+import "transformers" Control.Monad.Trans
#endif
+
import Control.Exception (Exception)
newtype AttemptT m v = AttemptT {
@@ -1,5 +1,5 @@
name: control-monad-attempt
-version: 0.2.0.1
+version: 0.3.0
license: BSD3
license-file: LICENSE
author: Michael Snoyman, Nicolas Pouillard
@@ -12,17 +12,9 @@ cabal-version: >= 1.2
build-type: Simple
homepage: http://github.com/snoyberg/control-monad-attempt
-flag transformers_02
- description: transformers = 0.2.*
-
library
build-depends: base >= 4 && < 5,
- syb,
- attempt >= 0.2.2 && < 0.3
+ attempt >= 0.3.0 && < 0.4,
+ transformers >= 0.1 && < 0.3
exposed-modules: Control.Monad.Attempt
- if flag(transformers_02)
- build-depends: transformers >= 0.2 && < 0.3
- CPP-OPTIONS: -DTRANSFORMERS_02
- else
- build-depends: transformers >= 0.1 && < 0.2
ghc-options: -Wall

0 comments on commit c4e5c53

Please sign in to comment.