invertible 0.2.0.2 → 0.2.0.3
raw patch · 7 files changed
+27/−7 lines, 7 filesdep ~basedep ~template-haskell
Dependency ranges changed: base, template-haskell
Files
- Control/Invertible/Functor.hs +4/−1
- Control/Invertible/MonadArrow.hs +4/−1
- Control/Invertible/Monoidal.hs +4/−1
- Control/Invertible/Monoidal/Free.hs +5/−1
- Data/Invertible.hs +3/−0
- Data/Invertible/Prelude.hs +5/−1
- invertible.cabal +2/−2
Control/Invertible/Functor.hs view
@@ -5,7 +5,10 @@ -- -- > import qualified Control.Invertible.Functor as Inv ---{-# LANGUAGE CPP, Safe, TypeOperators, FlexibleInstances #-}+{-# LANGUAGE CPP, TypeOperators, FlexibleInstances #-}+#if !(defined(VERSION_semigroupoids) && MIN_VERSION_semigroupoids(5,2,2))+{-# LANGUAGE Safe #-}+#endif module Control.Invertible.Functor ( Functor(..) , fmapDefault
Control/Invertible/MonadArrow.hs view
@@ -7,9 +7,12 @@ -- * @m a '<->' m b@ -- -- The Alimarine paper just calls it \"MoT\" for Monad Transformer.-{-# LANGUAGE CPP, Safe, TupleSections, FlexibleInstances, FlexibleContexts #-}+{-# LANGUAGE CPP, TupleSections, FlexibleInstances, FlexibleContexts #-} {-# LANGUAGE QuasiQuotes #-} {-# LANGUAGE TypeOperators #-}+#if !(defined(VERSION_semigroupoids) && MIN_VERSION_semigroupoids(5,2,2))+{-# LANGUAGE Safe #-}+#endif module Control.Invertible.MonadArrow ( MonadArrow(..) , MonadFunction
Control/Invertible/Monoidal.hs view
@@ -2,7 +2,10 @@ -- Invariant monoidal functors. -- -- This roughly corresponds to "Control.Applicative", but exposes a non-overlapping API so can be imported unqualified. It does, however, use operators similar to those provided by contravariant.-{-# LANGUAGE CPP, Safe, TypeOperators, FlexibleInstances #-}+{-# LANGUAGE CPP, TypeOperators, FlexibleInstances #-}+#if !(defined(VERSION_semigroupoids) && MIN_VERSION_semigroupoids(5,2,2))+{-# LANGUAGE Safe #-}+#endif module Control.Invertible.Monoidal ( Bijection(..) , I.biCase
Control/Invertible/Monoidal/Free.hs view
@@ -1,7 +1,11 @@-{-# LANGUAGE Safe, GADTs, RankNTypes, TupleSections, TypeOperators, QuasiQuotes #-} -- | -- A vague analog of free monads for invariant monoidals. -- This can provide a simple basis for things like invertible parsers.+{-# LANGUAGE CPP #-}+{-# LANGUAGE GADTs, RankNTypes, TupleSections, TypeOperators, QuasiQuotes #-}+#if !(defined(VERSION_semigroupoids) && MIN_VERSION_semigroupoids(5,2,2))+{-# LANGUAGE Safe #-}+#endif module Control.Invertible.Monoidal.Free ( Free(..) , showsFree
Data/Invertible.hs view
@@ -7,7 +7,10 @@ -- -- > import qualified Data.Invertible as Inv --+{-# LANGUAGE CPP #-}+#if !(defined(VERSION_semigroupoids) && MIN_VERSION_semigroupoids(5,2,2)) {-# LANGUAGE Safe #-}+#endif module Data.Invertible ( module Data.Invertible.Bijection , module Data.Invertible.TH
Data/Invertible/Prelude.hs view
@@ -1,7 +1,11 @@ -- | -- The bidirectional \"Prelude\", which re-exports various bijections similar to functions from "Prelude". -- Most \"un\"-functions are left out for obvious reasons.-{-# LANGUAGE Safe, TypeOperators #-}+{-# LANGUAGE CPP #-}+{-# LANGUAGE TypeOperators #-}+#if !(defined(VERSION_semigroupoids) && MIN_VERSION_semigroupoids(5,2,2))+{-# LANGUAGE Safe #-}+#endif module Data.Invertible.Prelude ( (<->) , type (<->)
invertible.cabal view
@@ -1,5 +1,5 @@ name: invertible-version: 0.2.0.2+version: 0.2.0.3 synopsis: bidirectional arrows, bijective functions, and invariant functors description: Representations and operations for bidirectional arrows (total isomorphisms: an@@ -82,7 +82,7 @@ build-depends: base >= 4.8 && <5, transformers,- haskell-src-meta >= 0.6 && < 0.8,+ haskell-src-meta >= 0.6 && < 0.9, template-haskell == 2.* default-language: Haskell2010 ghc-options: -Wall