Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
b9c1da83
Commit
b9c1da83
authored
Jan 06, 2015
by
Andrey Mokhov
Browse files
Support multiword options.
parent
91339343
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Oracles/Option.hs
View file @
b9c1da83
...
...
@@ -13,7 +13,7 @@ data Option = TargetOS | TargetArch | TargetPlatformFull
|
HostOsCpp
instance
ShowAction
Option
where
showAction
opt
=
showAction
$
askConfig
$
case
opt
of
showAction
opt
=
showAction
$
fmap
words
$
askConfig
$
case
opt
of
TargetOS
->
"target-os"
TargetArch
->
"target-arch"
TargetPlatformFull
->
"target-platform-full"
...
...
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