Skip to content

Commit

Permalink
Ormolu
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisPenner committed Aug 30, 2024
1 parent 897ac5a commit 83ed1ad
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions unison-core/src/Unison/Term.hs
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,15 @@ data F typeVar typeAnn patternAnn a
| Lam a
| -- Note: let rec blocks have an outer ABT.Cycle which introduces as many
-- variables as there are bindings
LetRec IsTop [a {- <- bindings -}] a {- <- body -}
-- Note: first parameter is the binding, second is the expression which may refer
| -- to this let bound variable. Constructed as `Let b (abs v e)`
Let IsTop a {- <- binding -} a {- <- body -}
-- Pattern matching / eliminating data types, example:
-- LetRec isTop bindings body
LetRec IsTop [a] a
| -- Note: first parameter is the binding, second is the expression which may refer
-- to this let bound variable. Constructed as `Let b (abs v e)`
-- Let isTop bindings body
Let IsTop a a
| -- Pattern matching / eliminating data types, example:
-- case x of
| -- Just n -> rhs1
-- Just n -> rhs1
-- Nothing -> rhs2
--
-- translates to
Expand Down

0 comments on commit 83ed1ad

Please sign in to comment.