packages feed

relit 0.1.2 → 0.1.3

raw patch · 2 files changed

+44/−42 lines, 2 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

Text/Regex/Literal.hs view
@@ -1,44 +1,42 @@ {-# LANGUAGE FlexibleContexts, FlexibleInstances, UndecidableInstances, CPP #-}-{-# OPTIONS -fno-warn-orphans #-}--{-|-  Literal notation for regular expression.--  Importing this module with the 'QuasiQuotes' and 'OverloadedStrings'-  extensions making possible to directly specify reqular expression-  literal. This means that awkward backslashes are not necessary.--  You can copy a regular expression in other languages and paste it-  to your Haskell program.--  Sample code:-->    { -# LANGUAGE QuasiQuotes, OverloadedStrings #- }->    -- Due to Haddock limitation, spaces are inserted after and before "}".->    -- Remove them if you copy this.->->    import Text.Regex.Literal->    import Text.Regex.Posix->->    -- Regular expression as the regular expression literal->    regexp :: Regex->    regexp = [$re|\\(foo)\\(bar\.c)|]->->    -- Regular expression as the String literal->    -- regexp :: Regex->    -- regexp = makeRegex ("\\\\(foo)\\\\(bar\\.c)" :: String)--  GHC 6.12.3 or earlier requires the dollar sign before \"re\".--  GHC 7.0.1 does not allow the dollar sign before \"re\".--  GHC 7.0.2 or later allows the dollar sign before \"re\" as an-  obsoleted syntax.+{-# OPTIONS_GHC -fno-warn-orphans #-} -  So, use GHC other than 7.0.1 and specify the dollor sign for-  portability.+-- |+-- Literal notation for regular expression.+--+-- Importing this module with the 'QuasiQuotes' and 'OverloadedStrings'+-- extensions making possible to directly specify reqular expression+-- literal. This means that awkward backslashes are not necessary.+--+-- You can copy a regular expression in other languages and paste it+-- to your Haskell program.+--+-- Sample code:+--+-- > {-# LANGUAGE QuasiQuotes, OverloadedStrings #-}+-- >+-- > import Text.Regex.Literal+-- > import Text.Regex.Posix+-- >+-- > -- Regular expression as the regular expression literal+-- > regexp :: Regex+-- > regexp = [$re|\\(foo)\\(bar\.c)|]+--+-- Compare with regular expression as the String literal.+--+-- > regexp :: Regex+-- > regexp = makeRegex ("\\\\(foo)\\\\(bar\\.c)" :: String)+--+-- GHC 6.12.3 or earlier requires the dollar sign before \"re\".+--+-- GHC 7.0.1 does not allow the dollar sign before \"re\".+--+-- GHC 7.0.2 or later allows the dollar sign before \"re\" as an+-- obsoleted syntax.+--+-- So, use GHC other than 7.0.1 and specify the dollor sign for+-- portability. --} module Text.Regex.Literal (re) where  import Data.String
relit.cabal view
@@ -1,5 +1,5 @@ Name:                   relit-Version:                0.1.2+Version:                0.1.3 Author:                 Kazu Yamamoto <kazu@iij.ad.jp> Maintainer:             Kazu Yamamoto <kazu@iij.ad.jp> License:                BSD3@@ -9,13 +9,17 @@ Category:               Text Cabal-Version:          >= 1.6 Build-Type:             Simple-library++Library   if impl(ghc >= 6.12)     GHC-Options:        -Wall -fno-warn-unused-do-bind   else     GHC-Options:        -Wall   Exposed-Modules:      Text.Regex.Literal-  Build-Depends:        base >= 4 && < 5, regex-base, template-haskell+  Build-Depends:        base >= 4 && < 5+                      , regex-base+                      , template-haskell+ Source-Repository head   Type:                 git-  Location:             git://github.com/kazu-yamamoto/relit.git+  Location:             git clone git://github.com/kazu-yamamoto/relit.git