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

Lyndon Maydwell maydwell at gmail.com
Sat May 21 05:50:30 CEST 2011


You should be able to do this with the help of your IDE.

For example, I've written a vim plugin to just load the modules
referenced rather than the functions for a file I'm working on. You
could do the same for a visual selection of code. Also, I believe that
emacs can load arbitrary code sections into ghci for you.

On Sat, May 21, 2011 at 11:44 AM, 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.
>
> --
> 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