madlang 4.0.0.3 → 4.0.0.4
raw patch · 3 files changed
+5/−3 lines, 3 filesPVP: minor bump suggested
API additions: PVP suggests at least a minor version bump
API changes (from Hackage documentation)
+ Text.Madlibs: cacheFile :: FilePath -> IO Text
Files
- madlang.cabal +1/−1
- src/Text/Madlibs.hs +1/−0
- src/Text/Madlibs/Ana/Resolve.hs +3/−2
madlang.cabal view
@@ -1,5 +1,5 @@ name: madlang-version: 4.0.0.3+version: 4.0.0.4 synopsis: Randomized templating language DSL description: Madlang is a text templating language written in Haskell, meant to explore computational creativity and generative
src/Text/Madlibs.hs view
@@ -38,6 +38,7 @@ , SemanticError (..) -- * Command-line executable , runMadlang+ , cacheFile -- * Template Haskell EDSL , madlang , madFile
src/Text/Madlibs/Ana/Resolve.hs view
@@ -1,4 +1,5 @@-{-# LANGUAGE FlexibleContexts #-}+{-# LANGUAGE FlexibleContexts #-}+{-# LANGUAGE OverloadedStrings #-} -- | Module containing IO stuff to get/parse files with external dependencies module Text.Madlibs.Ana.Resolve (@@ -56,7 +57,7 @@ | otherwise = '/' filenameBytecode :: FilePath -> FilePath-filenameBytecode = id+filenameBytecode = T.unpack . T.replace ".mad" ".mbc" . T.pack -- | Cache the parsed strucutre (and libraries it depends on) as a binary file -- `.filename.mbc`, reading instead from it when possible.