Failure to catch C++ exception in Haskell on OS X

Bas van Dijk v.dijk.bas at
Sat Jan 5 02:29:04 UTC 2019

On Fri, 4 Jan 2019 at 23:46, Adam Sandberg Eriksson
<adam at> wrote:
> A ticket which seems to cover the same problem:

Wonderful! I can confirm[1] that adding the following to the cabal
file fixes the problem:

  if os(darwin)
    ld-options: -Wl,-keep_dwarf_unwind

Shouldn't GHC do this by default when linking on OS X?



More information about the ghc-devs mailing list