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
68fbc703
Commit
68fbc703
authored
Aug 16, 2018
by
Kai-Oliver Prott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make shortAST qualified
parent
458d41b4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
src/Modules.hs
src/Modules.hs
+7
-6
No files found.
src/Modules.hs
View file @
68fbc703
...
...
@@ -92,18 +92,19 @@ compileModule opts m fn = do
writeTokens
opts
(
fst
mdl
)
writeComments
opts
(
fst
mdl
)
writeParsed
opts
mdl
writeHtml
opts
(
qual
mdl
)
let
umdl
=
(
fst
mdl
,
fmap
(
const
()
)
(
snd
mdl
))
let
qmdl
=
qual
mdl
writeHtml
opts
qmdl
let
umdl
=
(
fst
qmdl
,
fmap
(
const
()
)
(
snd
qmdl
))
writeAST
opts
umdl
writeShortAST
opts
umdl
mdl'
<-
expandExports
opts
mdl
qmdl
<-
dumpWith
opts
CS
.
showModule
CS
.
ppModule
DumpQualified
$
qual
mdl'
writeAbstractCurry
opts
qmdl
qmdl
'
<-
dumpWith
opts
CS
.
showModule
CS
.
ppModule
DumpQualified
$
qual
mdl'
writeAbstractCurry
opts
qmdl
'
-- generate interface file
let
intf
=
uncurry
exportInterface
qmdl
let
intf
=
uncurry
exportInterface
qmdl
'
writeInterface
opts
(
fst
mdl'
)
intf
when
withFlat
$
do
((
env
,
il
),
mdl''
)
<-
transModule
opts
qmdl
((
env
,
il
),
mdl''
)
<-
transModule
opts
qmdl
'
writeFlat
opts
env
(
snd
mdl''
)
il
where
withFlat
=
any
(`
elem
`
optTargetTypes
opts
)
[
TypedFlatCurry
,
FlatCurry
]
...
...
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