In " returnIO x = IO $ \ s -> (# s, x #)" what are the # symbols?
That's special syntax to make an unboxed tuple. See the manual section on unboxed types[1]. [1]: https://downloads.haskell.org/~ghc/7.6.3/docs/html/users_guide/primitives.ht... On Mon, Jul 13, 2015 at 5:23 PM, Jeffrey Brown <jeffbrown.the@gmail.com> wrote:
That appears here: http://hackage.haskell.org/package/base-4.8.0.0/docs/src/GHC-Base.html#line-...
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
You may also like this Wiki page about state tokens[1] (note: I'm the author). [1] https://wiki.haskell.org/Evaluation_order_and_state_tokens On Mon, Jul 13, 2015 at 5:25 PM Tikhon Jelvis <tikhon@jelv.is> wrote:
That's special syntax to make an unboxed tuple. See the manual section on unboxed types[1].
[1]: https://downloads.haskell.org/~ghc/7.6.3/docs/html/users_guide/primitives.ht...
On Mon, Jul 13, 2015 at 5:23 PM, Jeffrey Brown <jeffbrown.the@gmail.com> wrote:
That appears here: http://hackage.haskell.org/package/base-4.8.0.0/docs/src/GHC-Base.html#line-...
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
participants (3)
-
Jeffrey Brown -
Michael Snoyman -
Tikhon Jelvis