Proposal: Add HasCallStack to the partial functions in base

Vanessa McHale vanessa.mchale at iohk.io
Fri Sep 28 01:31:30 UTC 2018


What does "etc." mean? The linked ticket suggests that not all such
functions would be candidates.

I can't imagine fromJust, fromRight, or fromLeft being used in
performance-critical code, so perhaps those would be a good start?


On 09/27/2018 08:20 PM, Daniel Cartwright wrote:
> I propose to add `HasCallStack` to all partial functions in base, e.g.
> `fromJust`, `fromRight`, `fromLeft`, etc.
>
> Relevant discussion here: https://ghc.haskell.org/trac/ghc/ticket/15559
>
>
> _______________________________________________
> Libraries mailing list
> Libraries at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/libraries/attachments/20180927/581ac3a4/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://mail.haskell.org/pipermail/libraries/attachments/20180927/581ac3a4/attachment.sig>


More information about the Libraries mailing list