unsafePerformIO :: IO a -> a
in System.IO.Unsafe
(base).
Use it with caution and read the description in the documentation carefully.
More Related Contents:
- What is a monad?
- Good examples of Not a Functor/Functor/Applicative/Monad?
- Applicatives compose, monads don’t
- Monads with Join() instead of Bind()
- Operating on a return from a Maybe that contains “Just”
- A Haskell function of type: IO String-> String
- IO happens out of order when using getLine and putStr
- What is indexed monad?
- Is Haskell truly pure (is any language that deals with input and output outside the system)?
- Should do-notation be avoided in Haskell?
- Euler 43 – is there a monad to help write this list comprehension?
- Why does haskell’s bind function take a function from non-monadic to monadic
- Expressing do block using only monadic bind syntax
- Why do we need monads?
- Difference between Monad and Applicative in Haskell
- Defining a new monad in haskell raises no instance for Applicative
- What is a monad?
- Concrete example showing that monads are not closed under composition (with proof)?
- How to use (->) instances of Monad and confusion about (->)
- Why are side-effects modeled as monads in Haskell?
- Converting IO Int to Int
- How to interpret bind/>>= of the function instance?
- Why should Applicative be a superclass of Monad?
- How to enumerate a recursive datatype in Haskell?
- Haskell – depth for each node in binary tree using Reader monad
- How to return a pure value from a impure method
- How does the ST monad work?
- In what sense is the IO Monad pure?
- How Monads are considered pure?
- Is Haskell’s mapM not lazy?