[Haskell-beginners] Partial Loading and Debugging with GHCI

Kalman Noel noel.kalman at googlemail.com
Sat Apr 18 03:56:36 EDT 2009


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



More information about the Beginners mailing list