Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
curry-frontend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
62
Issues
62
List
Boards
Labels
Service Desk
Milestones
Merge Requests
3
Merge Requests
3
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
curry
curry-frontend
Commits
2b2d190e
Commit
2b2d190e
authored
Oct 05, 2018
by
Finn Teegen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Consider external data declarations when AbstractCurry is generated
parent
286c8797
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
CHANGELOG.md
CHANGELOG.md
+2
-0
src/Generators/GenAbstractCurry.hs
src/Generators/GenAbstractCurry.hs
+3
-0
No files found.
CHANGELOG.md
View file @
2b2d190e
...
...
@@ -7,6 +7,8 @@ Version 1.0.2 (under development)
*
Fixed bug with wrong type of free variables in the intermediate language.
*
Fixed bug with generated default implementations of nullary class methods.
*
Fixed bug in desugaring of record patterns.
*
Fixed bug that external data declarations weren't considered when
AbstractCurry was generated
Version 1.0.1
=============
...
...
src/Generators/GenAbstractCurry.hs
View file @
2b2d190e
...
...
@@ -150,6 +150,9 @@ trTypeDecl (NewtypeDecl _ t vs nc clss) =
<$>
trGlobalIdent
t
<*>
getTypeVisibility
t
<*>
mapM
genTVarIndex
vs
<*>
trNewConsDecl
nc
<*>
mapM
trQual
clss
trTypeDecl
(
ExternalDataDecl
_
t
vs
)
=
(
\
t'
v
vs'
->
[
CType
t'
v
vs'
[]
[]
])
<$>
trGlobalIdent
t
<*>
getTypeVisibility
t
<*>
mapM
genTVarIndex
vs
trTypeDecl
_
=
return
[]
trConsDecl
::
ConstrDecl
->
GAC
CConsDecl
...
...
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