[Haskell-beginners] what does (# a, s #) mean?

Krzysztof Skrzętnicki gtener at gmail.com
Sun Apr 10 20:00:29 CEST 2011


It's the syntax for unboxed tuple. See:
http://www.haskell.org/ghc/docs/latest/html/users_guide/primitives.html#unboxed-tuples

<http://www.haskell.org/ghc/docs/latest/html/users_guide/primitives.html#unboxed-tuples>Best
regards,
Krzysztof Skrzętnicki

On Sun, Apr 10, 2011 at 19:29, Amitava Shee <amitava.shee at gmail.com> wrote:

> I came across this definition in ghc source
>
> $GHC/compiler/utils/State.hs
> =======================
> newtype State s a = State { runState' :: s -> (# a, s #) }
>
>
> What does the construct (# a, s #) mean?
>
> Thanks & Regards,
> Amitava Shee
>
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://www.haskell.org/mailman/listinfo/beginners
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20110410/5cc9826c/attachment.htm>


More information about the Beginners mailing list