charset 0.3.7 → 0.3.7.1
raw patch · 4 files changed
+5/−22 lines, 4 filesdep ~bytestringdep ~containers
Dependency ranges changed: bytestring, containers
Files
- charset.cabal +1/−1
- src/Data/CharSet.hs +2/−19
- src/Data/CharSet/Unicode.hs +1/−1
- src/Data/CharSet/Unicode/Category.hs +1/−1
charset.cabal view
@@ -1,5 +1,5 @@ name: charset-version: 0.3.7+version: 0.3.7.1 license: BSD3 license-File: LICENSE copyright: (c) Edward Kmett 2010-2012
src/Data/CharSet.hs view
@@ -1,12 +1,9 @@ {-# OPTIONS_GHC -fspec-constr #-} {-# LANGUAGE CPP #-}+{-# LANGUAGE DeriveDataTypeable #-} #if defined(__GLASGOW_HASKELL__) && __GLASGOW_HASKELL__ >= 702 {-# LANGUAGE Trustworthy #-} #endif-#if MIN_VERSION_base(4,7,0)-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE StandaloneDeriving #-}-#endif ----------------------------------------------------------------------------- -- | -- Module : Data.CharSet@@ -95,6 +92,7 @@ import Text.Read data CharSet = CharSet !Bool {-# UNPACK #-} !ByteSet !IntSet+ deriving Typeable charSet :: Bool -> IntSet -> CharSet charSet b s = CharSet b (ByteSet.fromList (fmap headByte (I.toAscList s))) s@@ -278,21 +276,6 @@ numChars :: Int numChars = oh - ol + 1 {-# INLINE numChars #-}--#if MIN_VERSION_base(4,7,0)-deriving instance Typeable CharSet-#else-instance Typeable CharSet where- typeOf _ = mkTyConApp charSetTyCon []--charSetTyCon :: TyCon-#if MIN_VERSION_base(4,4,0)-charSetTyCon = mkTyCon3 "charset" "Data.CharSet" "CharSet"-#else-charSetTyCon = mkTyCon "Data.CharSet.CharSet"-#endif-{-# NOINLINE charSetTyCon #-}-#endif instance Data CharSet where gfoldl k z set
src/Data/CharSet/Unicode.hs view
@@ -9,7 +9,7 @@ -- Portability : portable -- -- Provides unicode general categories, which are typically connoted by--- @\p{Ll}@ or @\p{Modifier_Letter}@. Lookups can be constructed using 'categories'+-- @\\p{Ll}@ or @\\p{Modifier_Letter}@. Lookups can be constructed using 'categories' -- or individual character sets can be used directly. -------------------------------------------------------------------------------
src/Data/CharSet/Unicode/Category.hs view
@@ -9,7 +9,7 @@ -- Portability : DeriveDataTypeable -- -- Provides unicode general categories, which are typically connoted by--- @\p{Ll}@ or @\p{Modifier_Letter}@. Lookups can be constructed using 'categories'+-- @\\p{Ll}@ or @\\p{Modifier_Letter}@. Lookups can be constructed using 'categories' -- or individual character sets can be used directly. -- -- A case, @_@ and @-@ insensitive lookup is provided by 'lookupCategory'