Partial Loading and Debugging with GHCI

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Partial Loading and Debugging with GHCI

Kalman Noel-3
aditya siram schrieb:
> I would then have to comment out 'bad', reload the program and query output
> types to my hearts content. This is fine for a small program, but when I
> have functions are downriver from 'bad', it gets extremely cumbersome. Is
> there a way to load a file such that functions that compile stay loaded in
> the interpreter even if something else fails?

You can identify the offensive functions and write, in your example,

bad :: String
-- bad = hello ++ number
bad = undefined