I am having no luck generating a foreign export and calling it
from C. The problem seems to be that I must spoon feed the linker.
My working example is the files under this directory on Github:
https://github.com/solidsnack/bash/tree/106e4de8358a726984d54859fb0b4aeaf264156f/hs/exports
Silently has doubled in size with two new functions to capture the output of an
IO action:
capture :: IO a -> IO (String, a)
hCapture :: Handle -> IO a -> IO (String, a)
All 4 functions now clean up any temp file even if there's an asynchronous
exception but it still uses temp files behind-
Hi Rémy,
> Is there anything depending on haskell-packedstring in the haskell repo?
no, there isn't. The package appears to be obsolete.
Take care,
Peter
___
arch-haskell mailing list
arch-hask...@haskell.org
http://www.haskell.org/mailman/listinfo/
On 7 March 2011 02:28, Trystan Spangler wrote:
> Announcing Silently, a package with two simple functions to run an IO action
> while preventing it from writing to stdout (or the given handle)
Useful package!
I tiny remark about the code:
-- | Run an IO action while ignoring all output to stdou