diff --git a/semantic-tags/src/AST/Element.hs b/semantic-tags/src/AST/Element.hs index ab314f638..7487a6c94 100644 --- a/semantic-tags/src/AST/Element.hs +++ b/semantic-tags/src/AST/Element.hs @@ -70,6 +70,7 @@ instance TypeError prj' _ = Nothing +-- | Show a sum tree as a set (for use in type errors). type family ShowSum t where ShowSum (l :+: r) = ShowSum' ('Text "{ ") (l :+: r) ':$$: 'Text "}" ShowSum t = 'Text "{ " ':<>: 'ShowType t ':<>: 'Text " }"