diff options
author | xplorld <xplorld@gmail.com> | 2019-07-13 13:20:56 -0700 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2019-07-14 08:32:48 -0400 |
commit | fce8f240a23ebbf04fd7e769919b00eee9737028 (patch) | |
tree | 2756405c86b0c8fea310c79fbc19280447178785 /libraries/base | |
parent | d7c6c4717cdf1b7bd8550e37da66c52275c802f0 (diff) | |
download | haskell-fce8f240a23ebbf04fd7e769919b00eee9737028.tar.gz |
rename type parameter in `instance Applicative ((->) a)`, fixing #16928
Diffstat (limited to 'libraries/base')
-rw-r--r-- | libraries/base/GHC/Base.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libraries/base/GHC/Base.hs b/libraries/base/GHC/Base.hs index d0e181c742..b0160ab460 100644 --- a/libraries/base/GHC/Base.hs +++ b/libraries/base/GHC/Base.hs @@ -813,7 +813,7 @@ instance Functor ((->) r) where fmap = (.) -- | @since 2.01 -instance Applicative ((->) a) where +instance Applicative ((->) r) where pure = const (<*>) f g x = f x (g x) liftA2 q f g x = q (f x) (g x) |