operator sections
Some checks failed
Publish Playground / build (push) Has been cancelled
Publish Playground / deploy (push) Has been cancelled

This commit is contained in:
2026-01-31 13:21:23 -08:00
parent eed5c09508
commit c3e70c9ecc
8 changed files with 48 additions and 26 deletions

13
tests/TrailDollar.newt Normal file
View File

@@ -0,0 +1,13 @@
module TrailDollar
import Prelude
infixl 5 _$$_
_$$_ : Nat (Nat Nat) Nat
a $$ b = a + b a
-- Previously this didn't parse, but it does with operator section support.
blah : Nat Nat
blah x = x $$ $ \ y => y