patch applied (cabal): Add liftOption for making derived command parsers
26 Feb
2008
26 Feb
'08
8:05 p.m.
Tue Feb 26 12:02:15 PST 2008 Duncan Coutts <duncan@haskell.org> * Add liftOption for making derived command parsers liftOption :: (b -> a) -> (a -> (b -> b)) -> Option a -> Option b For example: liftOption fst (\a (_,b) -> (a,b)) :: Option a -> Option (a,b) Needed to be able to make a CommandUI (a, b) using an existing CommandUI a. That's what we want to do in cabal-install where the 'install' command to support all the 'configure' flags and some extra of it's own, for example --dry-run and probably several more in future. M ./Distribution/Simple/Command.hs -1 +12 View patch online: http://darcs.haskell.org/cabal/_darcs/patches/20080226200215-adfee-64cb4642f...
6768
Age (days ago)
6768
Last active (days ago)
0 comments
1 participants
participants (1)
-
Duncan Coutts