Skip to content

Commit

Permalink
Adds Builder Show instance (#296)
Browse files Browse the repository at this point in the history
* Added Builder Show instance

* Changed Builder instance to rely on IsString instance

* removed unused parameter, eta-reduction in Show instance

* changed Show instance of Builder showsPrec -> show
  • Loading branch information
elikoga committed Oct 5, 2020
1 parent f004302 commit 7851d7a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Data/ByteString/Builder.hs
Original file line number Diff line number Diff line change
Expand Up @@ -478,3 +478,6 @@ stringUtf8 = P.primMapListBounded P.charUtf8

instance IsString Builder where
fromString = stringUtf8

instance Show Builder where
show = show . toLazyByteString

0 comments on commit 7851d7a

Please sign in to comment.