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
curry
curry-frontend
Commits
c53d4458
Commit
c53d4458
authored
Jun 24, 2013
by
Björn Peemöller
Browse files
Added Show instance for compiler options
parent
12fc80cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/CompilerOpts.hs
View file @
c53d4458
...
...
@@ -47,7 +47,7 @@ data Options = Options
,
optDumps
::
[
DumpLevel
]
-- ^ dump levels
,
optDumpEnv
::
Bool
-- ^ dump compilation environment
,
optDumpRaw
::
Bool
-- ^ dump data structure
}
}
deriving
Show
-- | Default compiler options
defaultOptions
::
Options
...
...
@@ -76,7 +76,7 @@ data CymakeMode
|
ModeNumericVersion
-- ^ Show only version, suitable for later processing
|
ModeHtml
-- ^ Create HTML documentation
|
ModeMake
-- ^ Compile with dependencies
deriving
Eq
deriving
(
Eq
,
Show
)
-- |Type of the target file
data
TargetType
...
...
@@ -86,14 +86,14 @@ data TargetType
|
FlatXml
-- ^ FlatCurry as XML
|
AbstractCurry
-- ^ AbstractCurry
|
UntypedAbstractCurry
-- ^ UntypedAbstractCurry
deriving
Eq
deriving
(
Eq
,
Show
)
-- |Data type representing the verbosity level
data
Verbosity
=
VerbQuiet
-- ^ be quiet
|
VerbStatus
-- ^ show status of compilation
|
VerbInfo
-- ^ show also additional info
deriving
(
Eq
,
Ord
)
deriving
(
Eq
,
Ord
,
Show
)
-- |Classifies a number as a 'Verbosity'
classifyVerbosity
::
String
->
Verbosity
->
Verbosity
...
...
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