Skip to content

Commit

Permalink
next
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa McHale committed Jan 19, 2018
1 parent 4632244 commit d3f6a6c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion madlang.cabal
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions src/Text/Madlibs.hs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ module Text.Madlibs (
, SemanticError (..)
-- * Command-line executable
, runMadlang
, cacheFile
-- * Template Haskell EDSL
, madlang
, madFile
Expand Down
5 changes: 3 additions & 2 deletions src/Text/Madlibs/Ana/Resolve.hs
Original file line number Diff line number Diff line change
@@ -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 (
Expand Down Expand Up @@ -56,7 +57,7 @@ pathSep | os == "windows" = '\\'
| 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.
Expand Down

0 comments on commit d3f6a6c

Please sign in to comment.