summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormrkkrp <>2017-10-01 06:28:00 (GMT)
committerhdiff <hdiff@hdiff.luite.com>2017-10-01 06:28:00 (GMT)
commitc8786836bd0cc19b715e9cb1bedec482fe97ebbb (patch)
treeda43ab1d07d66c35a8a65700cc5f708c3ac64357
parent311054e6374562b1858111703a810875695c336e (diff)
version 1.2.11.2.1
-rw-r--r--CHANGELOG.md6
-rw-r--r--Text/Mustache/Compile/TH.hs2
-rw-r--r--stache.cabal2
3 files changed, 8 insertions, 2 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index b448d9b..624df43 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,9 @@
+## Stache 1.2.1
+
+* Fixed a bug in `compileMustacheDir'` from `Text.Mustache.Compile.TH`: it
+ did not use the supplied predicate and selected only `.mustache` files
+ like `compileMustacheDir`.
+
## Stache 1.2.0
* Added `compileMustacheDir'` and `getMusthacheFilesInDir'` that allow for a
diff --git a/Text/Mustache/Compile/TH.hs b/Text/Mustache/Compile/TH.hs
index a0ccaa8..e6b1973 100644
--- a/Text/Mustache/Compile/TH.hs
+++ b/Text/Mustache/Compile/TH.hs
@@ -74,7 +74,7 @@ compileMustacheDir'
-> Q Exp -- ^ The resulting template
compileMustacheDir' predicate pname path = do
runIO (C.getMustacheFilesInDir' predicate path) >>= mapM_ addDependentFile
- (runIO . try) (C.compileMustacheDir pname path) >>= handleEither
+ (runIO . try) (C.compileMustacheDir' predicate pname path) >>= handleEither
-- | Compile single Mustache template and select it.
--
diff --git a/stache.cabal b/stache.cabal
index 0a3f49d..4eef0fe 100644
--- a/stache.cabal
+++ b/stache.cabal
@@ -1,5 +1,5 @@
name: stache
-version: 1.2.0
+version: 1.2.1
cabal-version: >= 1.18
tested-with: GHC==7.10.3, GHC==8.0.2, GHC==8.2.1
license: BSD3