madlang 3.1.0.6 → 3.1.0.7
raw patch · 3 files changed
+1/−7 lines, 3 filesPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
API changes (from Hackage documentation)
- Text.Madlibs: madEmbed :: FilePath -> FilePath -> Q Exp
Files
- madlang.cabal +1/−1
- src/Text/Madlibs.hs +0/−1
- src/Text/Madlibs/Generate/TH.hs +0/−5
madlang.cabal view
@@ -1,5 +1,5 @@ name: madlang-version: 3.1.0.6+version: 3.1.0.7 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
@@ -40,7 +40,6 @@ -- * Template Haskell EDSL , madlang , madFile- , madEmbed ) where import Text.Madlibs.Ana.Parse
src/Text/Madlibs/Generate/TH.hs view
@@ -4,7 +4,6 @@ module Text.Madlibs.Generate.TH ( madFile , madlang- , madEmbed ) where import Data.FileEmbed@@ -14,7 +13,6 @@ import Language.Haskell.TH hiding (Dec) import Language.Haskell.TH.Quote import Text.Madlibs.Ana.Parse-import Text.Madlibs.Ana.Resolve import Text.Madlibs.Internal.Utils import Text.Megaparsec @@ -49,9 +47,6 @@ -- | Turn a parse error into an error that will be caught when Template Haskell compiles at runtime. errorgen :: Either (ParseError Char (ErrorFancy Void)) a -> a errorgen = either (error . T.unpack . show') id--madEmbed :: FilePath -> FilePath -> Q Exp-madEmbed folder filepath = [| errorgen <$> runIO (getInclusionCtx False [] folder filepath) |] -- | Splice for embedding a '.mad' file, e.g. --