packages feed

regex-wrapper 0.1.0.0 → 0.1.0.1

raw patch · 2 files changed

+2/−4 lines, 2 filesdep −case-insensitivedep ~basePVP: major bump suggested

API removals or changes: PVP suggests a major version bump

Dependencies removed: case-insensitive

Dependency ranges changed: base

API changes (from Hackage documentation)

- Text.Regex.Wrapper: instance Data.CaseInsensitive.Internal.FoldCase str => Data.CaseInsensitive.Internal.FoldCase (Text.Regex.Wrapper.Matched str pat)

Files

regex-wrapper.cabal view
@@ -1,6 +1,6 @@ cabal-version:       2.4 name:                regex-wrapper-version:             0.1.0.0+version:             0.1.0.1 synopsis:            Types that can only be constructed if they match a regular expression description:         Provides tooling for working with types whose values must                      match a regular expression provided in the type.@@ -28,6 +28,5 @@     , bytestring     , aeson     , containers-    , case-insensitive   hs-source-dirs:      src   default-language:    Haskell2010
src/Text/Regex/Wrapper.hs view
@@ -29,7 +29,6 @@ import Text.Regex.TDFA as TDFA import Data.Hashable import Data.Aeson-import Data.CaseInsensitive as CI  data RegexError str = NoMatch (MatchError str) | CompileError String     deriving Show@@ -93,7 +92,7 @@ -- | A wrapper type that can only be constructed if the underlying string -- type matches the regular expression in @pat@. newtype Matched str (pat :: Symbol) = Matched str-    deriving newtype (Show, Eq, Ord, Hashable, FoldCase)+    deriving newtype (Show, Eq, Ord, Hashable)  -- | Extract the wrapped @str@ type. asStr :: Matched str pat -> str