How to extract value from monadic action
A monad only supplies two functions: return :: Monad m => a -> m a (>>=) :: Monad m => m a -> (a -> m b) -> m b Both of these return something of type m a, so there is no way to combine these in any way to get a function of … Read more