Commit 4ec4ca99 authored by Ben Gamari's avatar Ben Gamari Committed by Ben Gamari

base: Add missing MonadFail instance for strict ST

Test Plan: Validate

Reviewers: hvr, RyanGlScott, austin

Reviewed By: RyanGlScott

Subscribers: rwbarton, thomie

Differential Revision: https://phabricator.haskell.org/D3982
parent b0991714
......@@ -77,6 +77,10 @@ instance Monad (ST s) where
case (k r) of { ST k2 ->
(k2 new_s) }})
-- | @since 4.11.0.0
instance Fail.MonadFail (ST s) where
fail s = errorWithoutStackTrace s
-- | @since 4.11.0.0
instance Semigroup a => Semigroup (ST s a) where
(<>) = liftA2 (<>)
......
......@@ -40,6 +40,8 @@
* Add `Data` instances for `IntPtr` and `WordPtr` (#13115)
* Add missing `MonadFail` instance for `Control.Monad.Strict.ST.ST`
## 4.10.0.0 *April 2017*
* Bundled with GHC *TBA*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment