haskell: full patterns — as/lazy/negative/infix + lambda & let pat LHS (+18 tests, 138/138)
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Has been cancelled
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Has been cancelled
This commit is contained in:
@@ -183,7 +183,9 @@
|
||||
(list
|
||||
:do
|
||||
(list
|
||||
(list :do-let (list (list :bind "y" (list :int 5))))
|
||||
(list
|
||||
:do-let
|
||||
(list (list :bind (list :p-var "y") (list :int 5))))
|
||||
(list
|
||||
:do-expr
|
||||
(list :app (list :var "print") (list :var "y"))))))
|
||||
@@ -197,8 +199,8 @@
|
||||
(list
|
||||
:do-let
|
||||
(list
|
||||
(list :bind "x" (list :int 1))
|
||||
(list :bind "y" (list :int 2))))
|
||||
(list :bind (list :p-var "x") (list :int 1))
|
||||
(list :bind (list :p-var "y") (list :int 2))))
|
||||
(list
|
||||
:do-expr
|
||||
(list
|
||||
@@ -244,10 +246,10 @@
|
||||
(list
|
||||
(list
|
||||
:bind
|
||||
"f"
|
||||
(list :p-var "f")
|
||||
(list
|
||||
:lambda
|
||||
(list "x")
|
||||
(list (list :p-var "x"))
|
||||
(list
|
||||
:case
|
||||
(list :var "x")
|
||||
@@ -264,7 +266,7 @@
|
||||
(hk-parse "\\x -> do\n y <- x\n return y")
|
||||
(list
|
||||
:lambda
|
||||
(list "x")
|
||||
(list (list :p-var "x"))
|
||||
(list
|
||||
:do
|
||||
(list
|
||||
|
||||
Reference in New Issue
Block a user