Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
curry
curry-frontend
Commits
39faf3c7
Commit
39faf3c7
authored
Apr 15, 2016
by
Finn Teegen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bug that type declarations weren't syntax checked
parent
14880aae
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
CHANGELOG.md
CHANGELOG.md
+1
-0
src/Checks/SyntaxCheck.hs
src/Checks/SyntaxCheck.hs
+2
-2
No files found.
CHANGELOG.md
View file @
39faf3c7
...
...
@@ -13,6 +13,7 @@ Under development (0.4.1)
*
Consider parenthesized type expressions in the Curry AST (by Katharina Rahf)
*
Added syntax extension
`ExistentialQuantification`
that allows the use
of existentially quantified types in data and newtype constructors
*
Fixed bug that type declarations weren't syntax checked
Version 0.4.0
=============
...
...
src/Checks/SyntaxCheck.hs
View file @
39faf3c7
...
...
@@ -331,10 +331,10 @@ checkModule :: Module -> SCM (Module, [KnownExtension])
checkModule
(
Module
ps
m
es
is
ds
)
=
do
mapM_
checkPragma
ps
mapM_
bindTypeDecl
tds
ds'
<-
(
tds
++
)
<$>
checkTopDecls
v
ds
ds'
<-
checkTopDecls
ds
exts
<-
getExtensions
return
(
Module
ps
m
es
is
ds'
,
exts
)
where
(
tds
,
vds
)
=
partition
isTypeDecl
ds
where
tds
=
filter
isTypeDecl
ds
checkPragma
::
ModulePragma
->
SCM
()
checkPragma
(
LanguagePragma
_
exts
)
=
mapM_
checkExtension
exts
...
...
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