diff options
Diffstat (limited to 'compiler/utils/State.hs')
-rw-r--r-- | compiler/utils/State.hs | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/compiler/utils/State.hs b/compiler/utils/State.hs index f28a8efc51..b8fcaa1576 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') - |