Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
curry
curry-frontend
Commits
fa15f499
Commit
fa15f499
authored
Feb 13, 2013
by
Björn Peemöller
Browse files
Fixed bug w.r.t. infix patterns inside functional patterns
parent
615c9c57
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/Transformations/Desugar.lhs
View file @
fa15f499
...
...
@@ -634,7 +634,7 @@ Function Patterns
>
fp2Expr
(
InfixPattern
t1
op
t2
)
=
>
let
(
t1'
,
es1
)
=
fp2Expr
t1
>
(
t2'
,
es2
)
=
fp2Expr
t2
>
in
(
InfixApply
t1'
(
Infix
Op
op
)
t2'
,
es1
++
es2
)
>
in
(
InfixApply
t1'
(
Infix
Constr
op
)
t2'
,
es1
++
es2
)
>
fp2Expr
(
ParenPattern
t
)
=
first
Paren
(
fp2Expr
t
)
>
fp2Expr
(
TuplePattern
r
ts
)
=
>
let
(
ts'
,
ess
)
=
unzip
$
map
fp2Expr
ts
...
...
test/FunctionalPatterns.curry
View file @
fa15f499
f (v@[] ++ v@(x:xs)) = x:xs ++ v
g (id ((:) x xs)) = x:xs
h (id (x:xs)) = x:xs
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment