unsafePerformIO :: IO a -> a
in System.IO.Unsafe
(base).
Use it with caution and read the description in the documentation carefully.
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 monad is just a monoid in the category of endofunctors, what’s the problem?
- A Haskell function of type: IO String-> String
- Concrete example showing that monads are not closed under composition (with proof)?
- How to use (->) instances of Monad and confusion about (->)
- Is monad bind (>>=) operator closer to function composition (chaining) or function application?
- IO happens out of order when using getLine and putStr
- What is indexed monad?
- How to extract value from monadic action
- Large-scale design in Haskell? [closed]
- What are free monads?
- Expressing do block using only monadic bind syntax
- What is the purpose of the reader monad?
- Should do-notation be avoided in Haskell?
- Haskell: I/O and Returning From a Function
- Euler 43 – is there a monad to help write this list comprehension?
- Why are side-effects modeled as monads in Haskell?
- Defining a new monad in haskell raises no instance for Applicative
- Converting IO Int to Int
- Is there a monad that doesn’t have a corresponding monad transformer (except IO)?
- Why should Applicative be a superclass of Monad?
- Monads not with "flatMap" but "flatUnit"? [closed]
- how do you delete the nth element in a list in Haskell
- What is the difference between . (dot) and $ (dollar sign)?
- Why shouldn’t I mix tabs and spaces?
- Does Haskell have tail-recursive optimization?
- Memory footprint of Haskell data types
- Is there a Haskell idiom for updating a nested data structure?
- Memoization in Haskell?
- Equal (=) Vs left arrow (
- Wrong IO actions order using putStr and getLine
- Positive integer type
- Explicitly import instances
- How do functors work in haskell?
- DatatypeContexts Deprecated in Latest GHC: Why?
- How do I use fix, and how does it work?
- List of different types?
- Split a number into its digits with Haskell
- How to infer the type of an expression manually
- Function definition by special cases in GHCi
- Ordering of parameters to make use of currying
- Haskell: How to create most generic function possible that applies a function to tuple items
- Can you overload + in haskell?
- Why doesn’t TypeSynonymInstances allow partially applied type synonyms to be used in instance heads?
- How can I generate different random values in Haskell?
- Explanation of “tying the knot”