Skip to content

Commit

Permalink
feat(pretty-printing): Remove the domain when printing foralls (as it…
Browse files Browse the repository at this point in the history
… will only ever be type)
  • Loading branch information
bristermitten committed May 31, 2024
1 parent 28492c5 commit 2b5158e
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions src/Elara/TypeInfer/Type.hs
Original file line number Diff line number Diff line change
Expand Up @@ -431,14 +431,8 @@ prettyQuantifiedType type0

prettyShort quantifier Forall{..} =
prefix
<> punctuation "("
<> label (pretty name)
<> " "
<> punctuation ":"
<> " "
<> pretty domain
<> punctuation ")"
<> " "
<> prettyShort ForallQuantifier type_
where
prefix =
Expand All @@ -448,14 +442,8 @@ prettyQuantifiedType type0
ForallQuantifier -> ""
prettyShort quantifier Exists{..} =
prefix
<> punctuation "("
<> label (pretty name)
<> " "
<> punctuation ":"
<> " "
<> pretty domain
<> punctuation ")"
<> " "
<> prettyShort ExistsQuantifier type_
where
prefix =
Expand All @@ -469,14 +457,7 @@ prettyQuantifiedType type0
prettyLong Forall{..} =
keyword "forall"
<> " "
<> punctuation "("
<> label (pretty name)
<> " "
<> punctuation ":"
<> " "
<> pretty domain
<> punctuation ")"
<> " "
<> punctuation "."
<> Pretty.hardline
<> prettyLong type_
Expand Down

0 comments on commit 2b5158e

Please sign in to comment.