Skip to content

Improve outputable instance for foreign calls.

Motivation

Currently when looking at a dump file for a foreign call we get something like this:

case {__pkg_ccall ghc State# RealWorld -> (# State# RealWorld, Int# #)}_aiIF

Which is better than nothing but really doesn't tell me what we call out to.

Proposal

Instead we should output something like.

case {__pkg_ccall(fooBar) ghc State# RealWorld -> (# State# RealWorld, Int# #)}_aiIF

where fooBar is the name of the function.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information