Skip to content
Snippets Groups Projects
Commit 5eb9b3a0 authored by Duncan Coutts's avatar Duncan Coutts
Browse files

Remove the need for instance Functor ((->) r)

I think. It's hard to test since with base as it is we cannot
easily compile without that instance being in scope.
parent 568b6b74
No related merge requests found
......@@ -78,7 +78,6 @@ module Distribution.Simple.Command (
) where
import Control.Monad
import Control.Monad.Instances (Functor(..)) -- instance Functor ((->) r)
import qualified Control.Exception as Exception
import Data.Char (isAlpha, toLower)
import Data.List (sortBy, isPrefixOf)
......@@ -338,7 +337,7 @@ liftOptDescr get' set' (ReqArg d ff ad set get) =
ReqArg d ff ad (liftSet get' set' `fmap` set) (get . get')
liftOptDescr get' set' (BoolOpt d ffT ffF set get) =
BoolOpt d ffT ffF (liftSet get' set' `fmap` set) (get . get')
BoolOpt d ffT ffF (liftSet get' set' . set) (get . get')
liftSet :: (b -> a) -> (a -> (b -> b)) -> (a -> a) -> b -> b
liftSet get' set' set x = set' (set $ get' x) x
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment