glabrous 2.0.0 → 2.0.1
raw patch · 2 files changed
+6/−4 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- glabrous.cabal +4/−2
- src/Text/Glabrous.hs +2/−2
glabrous.cabal view
@@ -1,5 +1,5 @@ name: glabrous-version: 2.0.0+version: 2.0.1 synopsis: A template DSL library description: A minimalistic, Mustache-like syntax, truly logic-less, pure Text template DSL library@@ -8,11 +8,13 @@ license-file: LICENSE author: Michel Boucey maintainer: michel.boucey@gmail.com-copyright: (c) 2016-2019 - Michel Boucey+copyright: (c) 2016-2020 - Michel Boucey category: Text, Web build-type: Simple cabal-version: >=1.10 extra-source-files: README.md++Tested-With: GHC ==8.4.3 || ==8.6.5 || ==8.8.1 source-repository head type: git
src/Text/Glabrous.hs view
@@ -88,8 +88,8 @@ where insertTag t t' (Literal l) = filter- (/= (Literal T.empty))- (intersperse (Tag t') $ (\x -> Literal x) <$> T.splitOn t l)+ (/= Literal T.empty)+ (intersperse (Tag t') $ Literal <$> T.splitOn t l) insertTag _ _ t@(Tag _) = [t] -- | Optimize a 'Template' content after (many) 'partialProcess'(') rewriting(s).