relit 0.1.1 → 0.1.2
raw patch · 2 files changed
+17/−12 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- Text/Regex/Literal.hs +16/−11
- relit.cabal +1/−1
Text/Regex/Literal.hs view
@@ -13,26 +13,31 @@ Sample code: -> { -# LANGUAGE QuasiQuotes, OverloadedStrings, CPP #- }+> { -# 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 String literal-> -- regexp :: Regex-> -- regexp = makeRegex ("\\\\(foo)\\\\(bar\\.c)" :: String)-> > -- Regular expression as the regular expression literal > regexp :: Regex-> -- Due to Haddock limitation, spaces are inserted between "-"s.-> -- Remove them if you copy this.-> #if _ _GLASGOW_HASKELL_ _ >= 700-> regexp = [re|\\(foo)\\(bar\.c)|]-> #else > regexp = [$re|\\(foo)\\(bar\.c)|]-> #endif+>+> -- 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
relit.cabal view
@@ -1,5 +1,5 @@ Name: relit-Version: 0.1.1+Version: 0.1.2 Author: Kazu Yamamoto <kazu@iij.ad.jp> Maintainer: Kazu Yamamoto <kazu@iij.ad.jp> License: BSD3