Standarize GHC.Prim.Any

Maciej Piechotka uzytkownik2 at gmail.com
Mon Aug 17 02:41:14 EDT 2009


I'm so sorry if I've done it wrong - it's my first contact with Haskell
standardization and I base on
http://hackage.haskell.org/trac/haskell-prime/wiki/Process . I hope it
is not too late as well.

Any from GHC.Prim makes unsafeCoerce much useful and safe. Can it be
included in Unsafe.Coerce module?

Pros:
- unsafeCoerce is much more useful with Any (it's a safe placeholder for
any value and therefore can be passed simply in/out FFI).
Cons:
- unsafeCoerce is useful, but not very nice, platorm-dependent low-level
anyway.

Best regards
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
Url : http://www.haskell.org/pipermail/haskell-prime/attachments/20090817/09be9e99/attachment.bin


More information about the Haskell-prime mailing list