Skip to content

Commit

Permalink
added a necesary overlappable pragma
Browse files Browse the repository at this point in the history
  • Loading branch information
JustusAdam committed Oct 26, 2015
1 parent 933e611 commit 11e5162
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 2 additions & 2 deletions mustache.cabal
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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



Expand Down
4 changes: 2 additions & 2 deletions src/lib/Text/Mustache/Types.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 11e5162

Please sign in to comment.