[Haskell-beginners] Is there a an include statement equivalence
Colin Paul Adams
colin at colina.demon.co.uk
Wed Feb 10 06:23:43 EST 2010
>>>>> "Andrew" == Andrew Smith <asmith9983 at gmail.com> writes:
Andrew> Hi I have a few lines of Haskell which I'd like to be pulled
Andrew> into my Haskell program, similar to the #include in C/C++,
Andrew> or Latex.
Andrew> I don't want to just paste the code permanently using
Andrew> editor, or pass it through say M4, nor build my own module.
Andrew> At the moment its a couple of lines I've used in three or
Andrew> four similar programs.
Andrew> As a Haskell beginner, is my thinking still stuck in the
Andrew> imperative coding style era ?
The equivalent is import.
Modules are lightweight. As are functions.
More information about the Beginners