Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
curry
curry-frontend
Commits
da18e522
Commit
da18e522
authored
Jul 11, 2018
by
Kai-Oliver Prott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove duplicate warnings for top-level patterns
parent
08178717
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
src/Checks/SyntaxCheck.hs
src/Checks/SyntaxCheck.hs
+1
-5
No files found.
src/Checks/SyntaxCheck.hs
View file @
da18e522
...
...
@@ -569,12 +569,8 @@ checkEquationsLhs p [Equation p' lhs rhs] = do
lhs'
<-
checkEqLhs
p'
lhs
case
lhs'
of
Left
l
->
return
$
funDecl'
l
Right
r
->
patDecl'
r
>>=
checkDeclLhs
Right
r
->
checkDeclLhs
(
PatternDecl
p'
r
rhs
)
where
funDecl'
(
f
,
lhs'
)
=
FunctionDecl
p
()
f
[
Equation
p'
lhs'
rhs
]
patDecl'
t
=
do
k
<-
getScopeId
when
(
k
==
globalScopeId
)
$
report
$
errToplevelPattern
p
return
$
PatternDecl
p'
t
rhs
checkEquationsLhs
_
_
=
internalError
"SyntaxCheck.checkEquationsLhs"
checkEqLhs
::
Position
->
Lhs
()
->
SCM
(
Either
(
Ident
,
Lhs
()
)
(
Pattern
()
))
...
...
Write
Preview
Markdown
is supported
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