X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Futils%2FState.hs;h=b8fcaa1576de69dd27d69f19e1a3f91dd8d9ed8e;hb=28ddef074b70a555c595f7f42ff97765d221b8eb;hp=f28a8efc51f1b59d806c82001cf2a26791cea3d0;hpb=bc845b714132a897032502536fea8cd018ce325b;p=ghc-hetmet.git diff --git a/compiler/utils/State.hs b/compiler/utils/State.hs index f28a8ef..b8fcaa1 100644 --- a/compiler/utils/State.hs +++ b/compiler/utils/State.hs @@ -46,18 +46,3 @@ execState s i = case runState' s i of runState :: State s a -> s -> (a, s) runState s i = case runState' s i of (# a, s' #) -> (a, s') - - -mapAccumLM - :: Monad m - => (acc -> x -> m (acc, y)) -- ^ combining funcction - -> acc -- ^ initial state - -> [x] -- ^ inputs - -> m (acc, [y]) -- ^ final state, outputs - -mapAccumLM _ s [] = return (s, []) -mapAccumLM f s (x:xs) - = do (s1, x') <- f s x - (s2, xs') <- mapAccumLM f s1 xs - return (s2, x' : xs') -