Skip to content

Commit

Permalink
Add Interpret String (#247)
Browse files Browse the repository at this point in the history
  • Loading branch information
ocharles authored and Gabriella439 committed Feb 2, 2018
1 parent 067ff6d commit 0e7d620
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
HEAD

* Add the instance `Interpret String`.
* See: https://github.com/dhall-lang/dhall-haskell/pull/247

1.9.1

* `dhall-format` now emits single-quoted strings for multi-line strings
Expand Down
3 changes: 3 additions & 0 deletions src/Dhall.hs
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,9 @@ instance Interpret Integer where
instance Interpret Double where
autoWith _ = double

instance {-# OVERLAPS #-} Interpret [Char] where
autoWith _ = string

instance Interpret Text where
autoWith _ = lazyText

Expand Down

0 comments on commit 0e7d620

Please sign in to comment.