packages feed

mustache-haskell 0.1.0.3 → 0.1.0.4

raw patch · 3 files changed

+4/−4 lines, 3 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

Main.hs view
@@ -23,7 +23,7 @@           (helper <*> parseOpts)           (fullDesc              <> progDesc "A Haskell implementation of Mustache templates.\nOn STDIN provide the JSON to insert into the template."-            <> header "mus v0.1.0.3")+            <> header "mus v0.1.0.4")  main = do     opts' <- execParser opts 
Text/Mustache/Parse.hs view
@@ -6,7 +6,7 @@ import Text.Mustache.Types import Text.Parsec import Data.Functor.Identity-import Control.Applicative hiding (many, (<|>))+import Control.Applicative hiding (many, (<|>), optional) import Data.Text (Text) import qualified Data.Text as T import Data.Monoid@@ -98,7 +98,7 @@ -- {{#section}} is a section; optional separator may be designated as {{#section|,}} section :: Parser Chunk section = do-    (key, sep) <- inDelimiters ((char '#' >> spaces) *> ((,) <$> keyPath <*> sep))+    (key, sep) <- inDelimiters ((char '#' >> spaces) *> ((,) <$> (keyPath <* optional (char '?')) <*> sep))     xs :: [Chunk] <- manyTill chunk (closeTag key)     (return  $ Section key xs sep) <?> ("section " ++ show key) 
mustache-haskell.cabal view
@@ -2,7 +2,7 @@ -- documentation, see http://haskell.org/cabal/users-guide/  name:                mustache-haskell -version:             0.1.0.3+version:             0.1.0.4 synopsis:            Straight implementation of mustache templates description:         Straight implementation of mustache templates  homepage:            https://github.com/danchoi/mustache-haskell