Debugging IO in a package module inside GHCi
问题 I'm doing low-level IO (for library bindings) in Haskell and am experiencing a segfault. I would like to use GHCi's :break to figure out what's going on, but here's what happens: > import SDL > :break SDL.setPaletteColors cannot set breakpoint on setPaletteColors: module SDL.Video.Renderer is not interpreted Since the offending code is not inside my own modules, but rather inside a module in an external package, it's loaded as compiled code and apparently I can't use :break on compiled