packages feed

StrappedTemplates 0.2.0.0 → 0.2.0.1

raw patch · 2 files changed

+15/−9 lines, 2 filesdep ~basedep ~filepathdep ~mtlPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: base, filepath, mtl, text

API changes (from Hackage documentation)

Files

StrappedTemplates.cabal view
@@ -1,5 +1,5 @@ name:                StrappedTemplates-version:             0.2.0.0+version:             0.2.0.1 synopsis:            General purpose templates in haskell homepage:            https://github.com/hansonkd/StrappedTemplates license:             BSD3@@ -9,6 +9,7 @@ category:            Text build-type:          Simple cabal-version:       >=1.8+ description:   Easy templating in haskell.   .@@ -64,24 +65,24 @@  library   exposed-modules:     Text.Strapped, Text.Strapped.Parser, Text.Strapped.Render, Text.Strapped.Types, Text.Strapped.Utils-  build-depends:       base >= 4.7 && < 4.8,+  build-depends:       base >= 4.7 && < 4.9,                        bytestring >= 0.10 && < 0.11,                        containers >= 0.5 && < 0.6,-                       text >= 1.0 && < 1.2, +                       text >= 1.0 && < 1.3,                        blaze-builder >=0.3 && < 0.4,                        parsec >=3.1 && < 3.2,-                       mtl >=2.1 && < 2.3,+                       mtl >=2.2.1 && < 2.3,                        transformers >= 0.4 && < 0.5,                        filemanip >=0.3.6 && < 0.3.7,-                       filepath >=1.3 && < 1.4+                       filepath >=1.3 && < 1.5   hs-source-dirs:      src  test-suite Main   type:            exitcode-stdio-1.0   build-depends:   StrappedTemplates >= 0.2 && < 0.3,-                   base >= 4.7 && < 4.8, +                   base >= 4.7 && < 4.9,                    hspec >= 1.11 && < 1.12,-                   text >= 1.0 && < 1.2,+                   text >= 1.0 && < 1.3,                    bytestring >= 0.10 && < 0.11,                    blaze-builder >=0.3 && < 0.4 @@ -90,4 +91,7 @@   default-language: Haskell2010   hs-source-dirs:  tests   main-is:         StrappedTest.hs-  ++source-repository head+  type:     git+  location: git@github.com:hansonkd/StrappedTemplates.git
src/Text/Strapped/Parser.hs view
@@ -1,3 +1,5 @@+{-# LANGUAGE FlexibleContexts #-}+ module Text.Strapped.Parser   ( parseTemplate   -- * Building custom template parsers@@ -188,9 +190,9 @@ parseStringContents esc = between (char esc) (char esc) (many chars)     where chars = (try escaped) <|> noneOf [esc]           escaped = char '\\' >> choice (zipWith escapedChar codes replacements)-          escapedChar code replacement = char code >> return replacement           codes        = ['b',  'n',  'f',  'r',  't',  '\\', '\"', '\'', '/']           replacements = ['\b', '\n', '\f', '\r', '\t', '\\', '\"', '\'', '/']+          escapedChar code replacement = char code >> return replacement  parseStatic :: ParserM Piece parseStatic = do