@@ -62,20 +62,6 @@ PureScript does not provide syntactic sugar for list types. Construct list types
##`IO` vs `Effect`
Haskell uses the `IO` monad to deal with side effects. In PureScript, there is a similar monad called `Effect` that serves the same purpose. For example, in a Haskell program the type signature of `main` will be:
In PureScript you would write it like this:
main :: Effect Unit
@@ -305,7 +291,7 @@ Note on `DataKinds`: Unlike in Haskell, user-defined kinds are open, and they ar
##`error` and `undefined`
For `error`, you can use `Control.Monad.Eff.Exception.Unsafe.unsafeThrow`, in the `purescript-exceptions` package.
For `error`, you can use `Effect.Exception.Unsafe.unsafeThrow`, in the `purescript-exceptions` package.
`undefined` can be emulated with `Unsafe.Coerce.unsafeCoerce unit :: forall a. a`, which is in the `purescript-unsafe-coerce` package. See also https://github.com/purescript/purescript-prelude/issues/44.