Commit 2b2d190e authored by Finn Teegen's avatar Finn Teegen

Consider external data declarations when AbstractCurry is generated

parent 286c8797
......@@ -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
=============
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment