summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobiasDammers <>2018-12-06 08:29:00 (GMT)
committerhdiff <hdiff@hdiff.luite.com>2018-12-06 08:29:00 (GMT)
commit0699017a1edb63f1307633ec1d4689811f52d928 (patch)
treed7b170ce0f3f18df99547bc9909601a16cbff41f
parent63fce831ed3923f86f1b41b777495ecb62afb73f (diff)
version 0.8.2.00.8.2.0
-rw-r--r--ginger.cabal7
-rw-r--r--src/Text/Ginger/Run.hs5
-rw-r--r--src/Text/Ginger/Run/Builtins.hs5
-rw-r--r--src/Text/Ginger/Run/Type.hs8
4 files changed, 22 insertions, 3 deletions
diff --git a/ginger.cabal b/ginger.cabal
index 6c098c3..40b0d30 100644
--- a/ginger.cabal
+++ b/ginger.cabal
@@ -2,7 +2,7 @@
-- documentation, see http://haskell.org/cabal/users-guide/
name: ginger
-version: 0.8.1.0
+version: 0.8.2.0
synopsis: An implementation of the Jinja2 template language in Haskell
description: Ginger is Jinja, minus the most blatant pythonisms. Wants
to be feature complete, but isn't quite there yet.
@@ -28,11 +28,12 @@ library
, Text.Ginger.Optimizer
, Text.Ginger.Parse
, Text.Ginger.Run
+ , Text.Ginger.Run.Type
+ , Text.Ginger.Run.Builtins
, Text.PrintfA
, Text.Ginger.Run.VM
, Text.Ginger.Run.FuncUtils
- other-modules: Text.Ginger.Run.Type
- , Text.Ginger.Run.Builtins
+ -- other-modules:
-- other-extensions:
build-depends: base >=4.8 && <5
, aeson
diff --git a/src/Text/Ginger/Run.hs b/src/Text/Ginger/Run.hs
index 8aa70f5..0be847b 100644
--- a/src/Text/Ginger/Run.hs
+++ b/src/Text/Ginger/Run.hs
@@ -54,6 +54,11 @@ module Text.Ginger.Run
, hoistRun
, hoistNewlines
, hoistRunState
+-- * Errors
+, RuntimeError (..)
+, runtimeErrorWhat
+, runtimeErrorWhere
+, runtimeErrorMessage
)
where
diff --git a/src/Text/Ginger/Run/Builtins.hs b/src/Text/Ginger/Run/Builtins.hs
index 666a916..4159bb0 100644
--- a/src/Text/Ginger/Run/Builtins.hs
+++ b/src/Text/Ginger/Run/Builtins.hs
@@ -6,6 +6,11 @@
{-#LANGUAGE MultiParamTypeClasses #-}
{-#LANGUAGE ScopedTypeVariables #-}
{-#LANGUAGE LambdaCase #-}
+
+-- | Implementations of the default template context functions and values. You
+-- will not normally need to import this module, unless you want to provide
+-- your own context with things that reuse functionality from the default
+-- ones.
module Text.Ginger.Run.Builtins
where
diff --git a/src/Text/Ginger/Run/Type.hs b/src/Text/Ginger/Run/Type.hs
index 3b3904a..84752a4 100644
--- a/src/Text/Ginger/Run/Type.hs
+++ b/src/Text/Ginger/Run/Type.hs
@@ -5,6 +5,12 @@
{-#LANGUAGE TypeSynonymInstances #-}
{-#LANGUAGE MultiParamTypeClasses #-}
{-#LANGUAGE ScopedTypeVariables #-}
+
+-- | The internals of the 'Run' monad, and various things needed to make the
+-- magic happen. You will not normally need to import this module;
+-- 'Text.Ginger.Run' re-exports the things you probably want. However, if you
+-- want to provide your own run monad that extends 'Run' somehow, this module
+-- may be of use.
module Text.Ginger.Run.Type
( GingerContext (..)
, makeContext
@@ -26,6 +32,8 @@ module Text.Ginger.Run.Type
, RunState (..)
, RuntimeError (..)
, runtimeErrorWhat
+, runtimeErrorWhere
+, runtimeErrorMessage
-- * The Newlines type
-- | Required for handling indentation
, Newlines (..)