template 0.2.0.3 → 0.2.0.4
raw patch · 2 files changed
+9/−2 lines, 2 filesdep ~text
Dependency ranges changed: text
Files
- Data/Text/Template.hs +6/−0
- template.cabal +3/−2
Data/Text/Template.hs view
@@ -1,3 +1,5 @@+{-# LANGUAGE CPP #-}+ -- | A simple string substitution library that supports \"$\"-based -- substitution. Substitution uses the following rules: --@@ -251,7 +253,11 @@ takeWhile :: (Char -> Bool) -> Parser T.Text takeWhile p = do S s row col <- get+#if MIN_VERSION_text(0,10,0)+ case T.span p s of+#else case T.spanBy p s of+#endif (x, s') -> do let xlines = T.lines x row' = row + fromIntegral (length xlines - 1)
template.cabal view
@@ -1,5 +1,5 @@ name: template-version: 0.2.0.3+version: 0.2.0.4 description: Simple string substitution library that supports \"$\"-based substitution. Meant to be used when Text.Printf or string@@ -21,8 +21,9 @@ build-depends: base >= 3.0 && < 4.4, mtl >= 1.1 && < 2.0.2,- text >= 0.7.2 && < 0.11+ text >= 0.7.2 && < 0.12 + extensions: CPP ghc-options: -funbox-strict-fields -Wall if impl(ghc >= 6.8) ghc-options: -fwarn-tabs