Skip to content

Commit

Permalink
Fix tuple patterns in parameter declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
alicelogos committed Nov 6, 2024
1 parent 0d3070e commit bca84b7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rzk/src/Language/Rzk/Free/Syntax.hs
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,7 @@ unsafeTermToPattern = ttp
Rzk.Unit loc -> Rzk.PatternUnit loc
Rzk.Var loc x -> Rzk.PatternVar loc x
Rzk.Pair loc l r -> Rzk.PatternPair loc (ttp l) (ttp r)
Rzk.Tuple loc t1 t2 ts -> Rzk.PatternTuple loc (ttp t1) (ttp t2) (map ttp ts)
term -> error ("ERROR: expected a pattern but got\n " ++ Rzk.printTree term)

fromTerm' :: Term' -> Rzk.Term
Expand Down

0 comments on commit bca84b7

Please sign in to comment.