mirror of
https://github.com/github/semantic.git
synced 2024-11-25 02:58:36 +03:00
📝 ShowSum.
This commit is contained in:
parent
78cc4835fc
commit
a2312d1185
@ -70,6 +70,7 @@ instance TypeError
|
|||||||
prj' _ = Nothing
|
prj' _ = Nothing
|
||||||
|
|
||||||
|
|
||||||
|
-- | Show a sum tree as a set (for use in type errors).
|
||||||
type family ShowSum t where
|
type family ShowSum t where
|
||||||
ShowSum (l :+: r) = ShowSum' ('Text "{ ") (l :+: r) ':$$: 'Text "}"
|
ShowSum (l :+: r) = ShowSum' ('Text "{ ") (l :+: r) ':$$: 'Text "}"
|
||||||
ShowSum t = 'Text "{ " ':<>: 'ShowType t ':<>: 'Text " }"
|
ShowSum t = 'Text "{ " ':<>: 'ShowType t ':<>: 'Text " }"
|
||||||
|
Loading…
Reference in New Issue
Block a user