[Haskell-beginners] Load functions from broken source code files?

Antoine Latter aslatter at gmail.com
Sat May 21 23:16:29 CEST 2011


On Fri, May 20, 2011 at 10:44 PM, Christopher Howard
<christopher.howard at frigidcode.com> wrote:
> Is there some way in GHCi to load a single function from a broken source
> code file? E.g, you're writing a program, the main function is
> incomplete, and half the other functions are broken, but you are
> developing one function and you just want to load in the current version
> of that, reload it after some editing, and so forth.
>
> I can see how normally that would not be a good idea, but I was
> wondering if there was some hackish way to do it that was fairly easy
> and quick.
>

I stub things out with the function 'undefined', which can get me part
of the way to typechecking.

> --
> frigidcode.com
> theologia.indicium.us
>
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://www.haskell.org/mailman/listinfo/beginners
>



More information about the Beginners mailing list