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:
parent
9642b12730
commit
397995e8a1
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user