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