shithub: MicroHs

Download patch

ref: 31c67fdfb9c30df33915df9f98d524491db02f29
parent: 66e6f1880fcf7fdcbbc3a680cbdb89125fa20e20
author: Lennart Augustsson <lennart.augustsson@epicgames.com>
date: Fri Oct 6 06:45:06 EDT 2023

Add sequence

--- a/lib/Control/Monad/State/Strict.hs
+++ b/lib/Control/Monad/State/Strict.hs
@@ -72,3 +72,6 @@
 when :: forall s . Bool -> State s () -> State s ()
 when True  s = s
 when False _ = Control.Monad.State.Strict.return ()
+
+sequence :: forall s a . [State s a] -> State s [a]
+sequence = Control.Monad.State.Strict.mapM id
--