Skip to content

Commit

Permalink
Re-export ‘renderMustacheW’ from ‘Text.Mustache’
Browse files Browse the repository at this point in the history
  • Loading branch information
mrkkrp committed Aug 6, 2017
1 parent 5d94d3b commit d1d1d5b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## Stache 1.1.1

* Exported `mustacheRenderW`, `MustacheWarning`, and
`displayMustacheWarning` from `Text.Mustache`.

## Stache 1.1.0

* Added `mustacheRenderW` that allows to render a `Template` collecting
Expand Down
5 changes: 4 additions & 1 deletion Text/Mustache.hs
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,15 @@ module Text.Mustache
, Key (..)
, PName (..)
, MustacheException (..)
, MustacheWarning (..)
, displayMustacheWarning
-- * Compiling
, compileMustacheDir
, compileMustacheFile
, compileMustacheText
-- * Rendering
, renderMustache )
, renderMustache
, renderMustacheW )
where

import Text.Mustache.Compile
Expand Down
2 changes: 1 addition & 1 deletion Text/Mustache/Render.hs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ renderMustache t = snd . renderMustacheW t

-- | Like 'renderMustache', but also returns a collection of warnings.
--
-- @since 1.1.0
-- @since 1.1.1

renderMustacheW :: Template -> Value -> ([MustacheWarning], TL.Text)
renderMustacheW t =
Expand Down
4 changes: 2 additions & 2 deletions Text/Mustache/Type.hs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ instance Exception MustacheException

-- | Warning that may be generated during rendering of a 'Template'.
--
-- @since 1.1.0
-- @since 1.1.1

data MustacheWarning
= MustacheVariableNotFound Key
Expand All @@ -141,7 +141,7 @@ data MustacheWarning

-- | Pretty-print a 'MustacheWarning'.
--
-- @since 1.1.0
-- @since 1.1.1

displayMustacheWarning :: MustacheWarning -> String
displayMustacheWarning (MustacheVariableNotFound key) =
Expand Down

0 comments on commit d1d1d5b

Please sign in to comment.