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.
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.

martinvlk/cabal,plumlife/cabal,randen/cabal,thoughtpolice/cabal,fugyk/cabal,enolan/cabal,ghc-android/cabal,beni55/cabal,headprogrammingczar/cabal,plumlife/cabal,mydaum/cabal,rimmington/cabal,Helkafen/cabal,triplepointfive/cabal,edsko/cabal,kosmikus/cabal,thomie/cabal,gbaz/cabal,mightybyte/cabal,corngood/cabal,Heather/cabal,alphaHeavy/cabal,sopvop/cabal,christiaanb/cabal,x-y-z/cabal,fpco/cabal,eric-stanley/cabal,Peaker/cabal,ghc-android/cabal,trskop/cabal,sopvop/cabal,typelead/epm,garetxe/cabal,trskop/cabal,sopvop/cabal,alphaHeavy/cabal,valderman/cabal,lukexi/cabal,mmakowski/cabal,randen/cabal,x-y-z/cabal,fugyk/cabal,eric-stanley/cabal,Peaker/cabal,enolan/cabal,mydaum/cabal,Heather/cabal,bennofs/cabal,rimmington/cabal,anton-dessiatov/cabal,headprogrammingczar/cabal,martinvlk/cabal,themoritz/cabal,plow-technologies/cabal,beni55/cabal,gridaphobe/cabal,plow-technologies/cabal,themoritz/cabal,edsko/cabal,seereason/cabal,corngood/cabal,kosmikus/cabal,christiaanb/cabal,kolmodin/cabal,themoritz/cabal,ian-ross/cabal,lukexi/cabal,kolmodin/cabal,thoughtpolice/cabal,typelead/epm,triplepointfive/cabal,ian-ross/cabal,seereason/cabal,anton-dessiatov/cabal,fpco/cabal,mightybyte/cabal,Helkafen/cabal,gbaz/cabal,thomie/cabal,valderman/cabal,gridaphobe/cabal,bennofs/cabal,garetxe/cabal,mmakowski/cabal