[Haskell-cafe] In " returnIO x = IO $ \ s -> (# s, x #)" what are the # symbols?

Tikhon Jelvis tikhon at jelv.is
Tue Jul 14 00:24:56 UTC 2015


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.html

On Mon, Jul 13, 2015 at 5:23 PM, Jeffrey Brown <jeffbrown.the at gmail.com>
wrote:

> That appears here:
> http://hackage.haskell.org/package/base-4.8.0.0/docs/src/GHC-Base.html#line-1057
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20150713/6a4fa623/attachment.html>


More information about the Haskell-Cafe mailing list