You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently patterns can only have patterns, name binders, and non-term data (e.g. labels). Allowing terms in patterns opens up support for the following language features:
logical patterns (like pattern matching on _ ++ [x] in Curry)
Technically, I think this is not forbidden by the foil and can be implemented manually, but must be properly handled within the Template Haskell generation functions.
The text was updated successfully, but these errors were encountered:
fizruk
changed the title
Allow terms in patterns
Support terms in patterns with Template Haskell
Aug 18, 2024
Currently patterns can only have patterns, name binders, and non-term data (e.g. labels). Allowing terms in patterns opens up support for the following language features:
ScopedTypeVariables
extension)ViewPatterns
extension)_ ++ [x]
in Curry)Technically, I think this is not forbidden by the foil and can be implemented manually, but must be properly handled within the Template Haskell generation functions.
The text was updated successfully, but these errors were encountered: