From 11e51625a57323c8a7cd19dac2ba6b776ab66b33 Mon Sep 17 00:00:00 2001 From: Justus Adam Date: Mon, 26 Oct 2015 13:15:57 +0100 Subject: [PATCH] added a necesary overlappable pragma --- CHANGELOG.md | 4 ++++ mustache.cabal | 4 ++-- src/lib/Text/Mustache/Types.hs | 4 ++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d4a268a..b51882b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Mustache library changelog +## v0.4.0.1rc-5 + +- Added a necessary OVERLAPPABLE pragma + ## v0.4.0.0rc-4 (current stable version) - Removed `conversion` and `conversion-text` dependency. diff --git a/mustache.cabal b/mustache.cabal index 5fcd513..28b20f2 100644 --- a/mustache.cabal +++ b/mustache.cabal @@ -1,5 +1,5 @@ name: mustache -version: 0.4.0.0 +version: 0.4.0.1 synopsis: A mustache template parser library. description: Allows parsing and rendering template files with mustache markup. See the @@ -30,7 +30,7 @@ source-repository this type: git branch: master location: git://github.com/JustusAdam/mustache.git - tag: v0.4.0.0rc-4 + tag: v0.4.0.1rc-5 diff --git a/src/lib/Text/Mustache/Types.hs b/src/lib/Text/Mustache/Types.hs index fa2aa4d..c88bf4c 100644 --- a/src/lib/Text/Mustache/Types.hs +++ b/src/lib/Text/Mustache/Types.hs @@ -107,7 +107,7 @@ class ToMustache ω where instance ToMustache Value where toMustache = id -instance ToMustache [Char] where +instance ToMustache String where toMustache = toMustache ∘ pack instance ToMustache Bool where @@ -125,7 +125,7 @@ instance ToMustache LT.Text where instance ToMustache Scientific where toMustache = Number -instance ToMustache ω ⇒ ToMustache [ω] where +instance {-# OVERLAPPABLE #-} ToMustache ω ⇒ ToMustache [ω] where toMustache = Array ∘ V.fromList ∘ fmap toMustache instance ToMustache ω ⇒ ToMustache (V.Vector ω) where