Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
Packages
Cabal
Commits
d35aa51f
Commit
d35aa51f
authored
May 01, 2008
by
Malcolm.Wallace
Browse files
Revert the other `fmap` to (.)
To avoid needing a non-H'98 instance of Functor for (->).
parent
49abcdf5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Distribution/Simple/Command.hs
View file @
d35aa51f
...
...
@@ -182,7 +182,7 @@ noArg flag sf lf d = choiceOpt [(flag, (sf,lf), d)] sf lf d
boolOpt
::
(
b
->
Maybe
Bool
)
->
(
Bool
->
b
)
->
SFlags
->
SFlags
->
MkOptDescr
(
a
->
b
)
(
b
->
a
->
a
)
a
boolOpt
g
s
sfT
sfF
_sf
_lf
@
(
n
:
_
)
d
get
set
=
BoolOpt
d
(
sfT
,
[
"enable-"
++
n
])
(
sfF
,
[
"disable-"
++
n
])
(
set
.
s
)
(
g
`
fmap
`
get
)
BoolOpt
d
(
sfT
,
[
"enable-"
++
n
])
(
sfF
,
[
"disable-"
++
n
])
(
set
.
s
)
(
g
.
get
)
boolOpt
_
_
_
_
_
_
_
_
_
=
error
"Distribution.Simple.Setup.boolOpt: unreachable"
boolOpt'
::
(
b
->
Maybe
Bool
)
->
(
Bool
->
b
)
->
OptFlags
->
OptFlags
->
MkOptDescr
(
a
->
b
)
(
b
->
a
->
a
)
a
...
...
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