packages feed

mustache 0.3.0.1 → 0.3.1.0

raw patch · 2 files changed

+21/−5 lines, 2 files

Files

mustache.cabal view
@@ -1,5 +1,5 @@ name:                mustache-version:             0.3.0.1+version:             0.3.1.0 synopsis:            A mustache template parser library. description:   Allows parsing and rendering template files with mustache markup. See the@@ -8,7 +8,7 @@   Implements the mustache spec version 1.1.3    This library requires GHC >= 7.10 because it uses the new overlapping instances-  to provide eficcient and versatile conversion of custom data types into mustache+  to provide efficient and versatile conversion of custom data types into mustache   Values. license:             BSD3 license-file:        LICENSE@@ -32,7 +32,7 @@   type:     git   branch:   master   location: git://github.com/JustusAdam/mustache.git-  tag:      v0.3.0.1rc-2+  tag:      v0.3.1.0rc-3   
src/lib/Text/Mustache/Types.hs view
@@ -106,7 +106,6 @@ class ToMustache ω where   toMustache ∷ ω → Value - instance ToMustache Value where   toMustache = id @@ -319,11 +318,14 @@ -- Recommended in conjunction with the `OverloadedStrings` extension. (~>) ∷ ToMustache ω ⇒ Text → ω → Pair (~>) t = (t, ) ∘ toMustache-+{-# INLINEABLE (~>) #-}+infixr 8 ~>  -- | Unicode version of '~>' (↝) ∷ ToMustache ω ⇒ Text → ω → Pair (↝) = (~>)+{-# INLINEABLE (↝) #-}+infixr 8 ↝   -- | Map keys to values that provide a 'ToJSON' instance@@ -331,29 +333,43 @@ -- Recommended in conjunction with the `OverloadedStrings` extension. (~=) ∷ Aeson.ToJSON ι ⇒ Text → ι → Pair (~=) t = (t ~>) ∘ Aeson.toJSON+{-# INLINEABLE (~=) #-}+infixr 8 ~=   -- | Unicode version of '~=' (⥱) ∷ Aeson.ToJSON ι ⇒ Text → ι → Pair (⥱) = (~=)+{-# INLINEABLE (⥱) #-}+infixr 8 ⥱ + -- | Conceptually similar to '~>' but uses arbitrary String-likes as keys. (~~>) ∷ (Conversion ζ Text, ToMustache ω) ⇒ ζ → ω → Pair (~~>) = (~>) ∘ convert+{-# INLINEABLE (~~>) #-}+infixr 8 ~~>   -- | Unicde version of '~~>' (~↝) ∷ (Conversion ζ Text, ToMustache ω) ⇒ ζ → ω → Pair (~↝) = (~~>)+{-# INLINEABLE (~↝) #-}+infixr 8 ~↝ + -- | Conceptually similar to '~=' but uses arbitrary String-likes as keys. (~~=) ∷ (Conversion ζ Text, Aeson.ToJSON ι) ⇒ ζ → ι → Pair (~~=) = (~=) ∘ convert+{-# INLINEABLE (~~=) #-}+infixr 8 ~~=   -- | Unicode version of '~~=' (~⥱) ∷ (Conversion ζ Text, Aeson.ToJSON ι) ⇒ ζ → ι → Pair (~⥱) = (~~=)+{-# INLINEABLE (~⥱) #-}+infixr 8 ~⥱   -- | Converts arbitrary String-likes to Values