1
1
mirror of https://github.com/github/semantic.git synced 2024-11-24 00:42:33 +03:00

Define a Show instance for Print.

This commit is contained in:
Rob Rix 2021-12-14 14:46:59 -05:00
parent 9642b12730
commit 397995e8a1
No known key found for this signature in database
GPG Key ID: 2BE643E01DC032AE

View File

@ -20,6 +20,9 @@ class Syntax rep where
newtype Print = Print { print_ :: ShowS }
instance Show Print where
showsPrec _ = print_
instance Semigroup Print where
Print a <> Print b = Print (a . b)