tagged 0.7 → 0.7.1
raw patch · 3 files changed
+11/−1 lines, 3 files
Files
- CHANGELOG.markdown +4/−0
- src/Data/Tagged.hs +6/−0
- tagged.cabal +1/−1
CHANGELOG.markdown view
@@ -1,3 +1,7 @@+0.7.1+-----+* Added `tagWith`.+ 0.7 --- * `Data.Proxy` has moved into base as of GHC 7.7 for use in the new `Data.Typeable`. We no longer export
src/Data/Tagged.hs view
@@ -33,6 +33,7 @@ -- * Conversion , proxy , unproxy+ , tagWith ) where import Control.Applicative ((<$>), liftA2, Applicative(..))@@ -278,3 +279,8 @@ unproxy :: (Proxy s -> a) -> Tagged s a unproxy f = Tagged (f Proxy) {-# INLINE unproxy #-}++-- | Another way to convert a proxy to a tag.+tagWith :: proxy s -> a -> Tagged s a+tagWith _ = Tagged+{-# INLINE tagWith #-}
tagged.cabal view
@@ -1,5 +1,5 @@ name: tagged-version: 0.7+version: 0.7.1 license: BSD3 license-file: LICENSE author: Edward A. Kmett