Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Finn Teegen
curry-base
Commits
b2123bad
Commit
b2123bad
authored
May 12, 2017
by
Finn Teegen
Browse files
Rename annotated FlatCurry to typed FlatCurry
parent
1dabab7b
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/Curry/Files/Filenames.hs
View file @
b2123bad
...
...
@@ -28,7 +28,7 @@ module Curry.Files.Filenames
,
curryExt
,
lcurryExt
,
icurryExt
-- ** FlatCurry files
,
annotat
edFlatExt
,
flatExt
,
flatIntExt
,
typ
edFlatExt
,
flatExt
,
flatIntExt
-- ** AbstractCurry files
,
acyExt
,
uacyExt
...
...
@@ -37,7 +37,7 @@ module Curry.Files.Filenames
,
sourceRepExt
,
sourceExts
,
moduleExts
-- * Functions for computing file names
,
interfName
,
annotat
edFlatName
,
flatName
,
flatIntName
,
interfName
,
typ
edFlatName
,
flatName
,
flatIntName
,
acyName
,
uacyName
,
sourceRepName
,
tokensName
,
htmlName
)
where
...
...
@@ -148,9 +148,9 @@ sourceExts = [curryExt, lcurryExt]
moduleExts
::
[
String
]
moduleExts
=
sourceExts
++
[
icurryExt
]
-- |Filename extension for
annotat
ed flat-curry files
annotat
edFlatExt
::
String
annotat
edFlatExt
=
".
a
fcy"
-- |Filename extension for
typ
ed flat-curry files
typ
edFlatExt
::
String
typ
edFlatExt
=
".
t
fcy"
-- |Filename extension for flat-curry files
flatExt
::
String
...
...
@@ -184,9 +184,9 @@ tokensExt = ".tokens"
interfName
::
FilePath
->
FilePath
interfName
=
replaceExtensionWith
icurryExt
-- |Compute the filename of the
annotat
ed flat curry file for a source file
annotat
edFlatName
::
FilePath
->
FilePath
annotat
edFlatName
=
replaceExtensionWith
annotat
edFlatExt
-- |Compute the filename of the
typ
ed flat curry file for a source file
typ
edFlatName
::
FilePath
->
FilePath
typ
edFlatName
=
replaceExtensionWith
typ
edFlatExt
-- |Compute the filename of the flat curry file for a source file
flatName
::
FilePath
->
FilePath
...
...
src/Curry/FlatCurry/Files.hs
View file @
b2123bad
...
...
@@ -13,13 +13,13 @@
-}
module
Curry.FlatCurry.Files
(
read
Annotat
edFlatCurry
,
readFlatCurry
,
readFlatInterface
,
writeFlatCurry
(
read
Typ
edFlatCurry
,
readFlatCurry
,
readFlatInterface
,
writeFlatCurry
)
where
import
Control.Monad
(
liftM
)
import
Data.Char
(
isSpace
)
import
Curry.Files.Filenames
(
annotat
edFlatName
,
flatName
,
flatIntName
)
import
Curry.Files.Filenames
(
typ
edFlatName
,
flatName
,
flatIntName
)
import
Curry.Files.PathUtils
(
writeModule
,
readModule
)
import
Curry.FlatCurry.Type
(
Prog
)
...
...
@@ -30,10 +30,10 @@ import Curry.FlatCurry.Annotated.Type (AProg, TypeExpr)
-- Functions for reading and writing FlatCurry terms
-- ---------------------------------------------------------------------------
-- |Reads an
annotat
ed FlatCurry file (extension ".
a
fcy") and eventually
-- |Reads an
typ
ed FlatCurry file (extension ".
t
fcy") and eventually
-- returns the corresponding FlatCurry program term (type 'AProg').
read
Annotat
edFlatCurry
::
FilePath
->
IO
(
Maybe
(
AProg
TypeExpr
))
read
Annotat
edFlatCurry
=
readFlat
.
annotat
edFlatName
read
Typ
edFlatCurry
::
FilePath
->
IO
(
Maybe
(
AProg
TypeExpr
))
read
Typ
edFlatCurry
=
readFlat
.
typ
edFlatName
-- |Reads a FlatCurry file (extension ".fcy") and eventually returns the
-- corresponding FlatCurry program term (type 'Prog').
...
...
Write
Preview
Supports
Markdown
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