1
1
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:
Rob Rix 2017-08-22 12:52:09 -04:00
parent fc62716003
commit 2b278c1688

View File

@ -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