Skip to content
GitLab
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-frontend
Commits
6878f8aa
Commit
6878f8aa
authored
Apr 22, 2014
by
Björn Peemöller
Browse files
Merge branch '0.3-stable'
Conflicts: src/CurryBuilder.hs
parents
5e92b361
ffb0f15c
Changes
4
Hide whitespace changes
Inline
Side-by-side
CHANGELOG.md
View file @
6878f8aa
...
...
@@ -39,6 +39,9 @@ Version 0.3.10
Version 0.3.9
=============
*
Simplified verbosity options by merging options "-v1" and "-v2".
Now only "-v0" and "-v1" are supported.
*
Fixed bug in non-exhaustive pattern matching check which occured
when retrieving the siblings of a constructor imported using an alias.
...
...
src/Base/Messages.hs
View file @
6878f8aa
module
Base.Messages
(
-- * Output of user information
info
,
status
,
warn
,
putErrLn
,
putErrsLn
status
,
warn
,
putErrLn
,
putErrsLn
-- * program abortion
,
abortWith
,
abortWithMessage
,
abortWithMessages
,
internalError
,
errorMessage
,
errorMessages
...
...
@@ -30,9 +30,6 @@ runEitherCYIO act = do
Left
errs
->
abortWithMessages
errs
Right
val
->
return
val
info
::
MonadIO
m
=>
Options
->
String
->
m
()
info
opts
msg
=
unless
(
optVerbosity
opts
<
VerbInfo
)
(
putMsg
msg
)
status
::
MonadIO
m
=>
Options
->
String
->
m
()
status
opts
msg
=
unless
(
optVerbosity
opts
<
VerbStatus
)
(
putMsg
msg
)
...
...
src/CompilerOpts.hs
View file @
6878f8aa
...
...
@@ -129,14 +129,12 @@ data CymakeMode
data
Verbosity
=
VerbQuiet
-- ^ be quiet
|
VerbStatus
-- ^ show status of compilation
|
VerbInfo
-- ^ also show additional info
deriving
(
Eq
,
Ord
,
Show
)
-- |Description and flag of verbosities
verbosities
::
[(
Verbosity
,
String
,
String
)]
verbosities
=
[
(
VerbQuiet
,
"0"
,
"quiet"
)
,
(
VerbStatus
,
"1"
,
"status"
)
,
(
VerbInfo
,
"2"
,
"info"
)
]
-- |Type of the target file
...
...
src/Generators/GenFlatCurry.hs
View file @
6878f8aa
...
...
@@ -22,7 +22,6 @@ import Curry.Base.Message
import
Curry.Base.Pretty
import
Curry.ExtendedFlat.Type
import
Curry.ExtendedFlat.TypeInference
import
qualified
Curry.Syntax
as
CS
-- Base
...
...
@@ -56,7 +55,7 @@ genFlatCurry :: Options -> ModuleSummary.ModuleSummary -> InterfaceEnv
genFlatCurry
opts
modSum
mEnv
tyEnv
tcEnv
mdl
=
(
prog'
,
messages
)
where
(
prog
,
messages
)
=
run
opts
modSum
mEnv
tyEnv
tcEnv
False
(
visitModule
mdl
)
prog'
=
{
- eraseTypes $
-}
adjustTypeInfo
$
patchPrelude
prog
prog'
=
patchPrelude
prog
-
- eraseTypes $ adjustTypeInfo $
-- transforms intermediate language code (IL) to FlatCurry interfaces
genFlatInterface
::
Options
->
ModuleSummary
.
ModuleSummary
->
InterfaceEnv
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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