mirror of
https://github.com/github/semantic.git
synced 2025-01-03 13:02:37 +03:00
Define a Pretty instance for Term.
This commit is contained in:
parent
fc62716003
commit
2b278c1688
@ -73,3 +73,6 @@ runCofree (a Cofree.:< f) = a CofreeF.:< f
|
||||
|
||||
instance Pretty1 f => Pretty1 (Cofree.Cofree f) where
|
||||
liftPretty p pl = go where go (a Cofree.:< f) = p a <+> liftPretty go (liftPrettyList p pl) f
|
||||
|
||||
instance (Pretty1 f, Pretty a) => Pretty (Cofree.Cofree f a) where
|
||||
pretty = pretty1
|
||||
|
Loading…
Reference in New Issue
Block a user