summaryrefslogtreecommitdiff
path: root/libraries/base/GHC/ST.hs
diff options
context:
space:
mode:
authorDavid Feuer <david.feuer@gmail.com>2017-02-05 19:43:31 -0500
committerDavid Feuer <David.Feuer@gmail.com>2017-02-05 19:43:32 -0500
commita2f39da0461b5da62a9020b0d98a1ce2765dd700 (patch)
tree38333e49d205beb1ee81cf51cd92ee3b9dcdad66 /libraries/base/GHC/ST.hs
parent54b9b064fc7960a4dbad387481bc3a6496cc397f (diff)
downloadhaskell-a2f39da0461b5da62a9020b0d98a1ce2765dd700.tar.gz
Add liftA2 to Applicative class
* Make `liftA2` a method of `Applicative`. * Add explicit `liftA2` definitions to instances in `base`. * Add explicit invocations in `base`. Reviewers: ekmett, bgamari, RyanGlScott, austin, hvr Reviewed By: RyanGlScott Subscribers: ekmett, RyanGlScott, rwbarton, thomie Differential Revision: https://phabricator.haskell.org/D3031
Diffstat (limited to 'libraries/base/GHC/ST.hs')
-rw-r--r--libraries/base/GHC/ST.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/libraries/base/GHC/ST.hs b/libraries/base/GHC/ST.hs
index dc5c71fe68..7982d598af 100644
--- a/libraries/base/GHC/ST.hs
+++ b/libraries/base/GHC/ST.hs
@@ -65,6 +65,7 @@ instance Applicative (ST s) where
pure x = ST (\ s -> (# s, x #))
m *> k = m >>= \ _ -> k
(<*>) = ap
+ liftA2 = liftM2
-- | @since 2.01
instance Monad (ST s) where