|
what do you want to execute if you do not have a
main function?
i.e. this LHS-file:
------------------------------------------------------------------ rzsjztj ���������strh�> module Snoop where
rjst�h gitsh
> schnuck :: IO ()
> schnuck = putStr "schnuck" sdfthsrthk
> gumble :: IO ()
> gumble = putStr "gumble" srhthtr
> hurz :: IO ()
> hurz = gumble << schnuck << schnuck >
> honk :: IO ()
> honk = do >
schnuck >
gumble>
schnuck
------------------------------------------------------------------
you have to define the function, you want to execute as your
main-programm.
so, just define a main::IO() function.
several modules (that you connect together) could have a main-function, so
you have to define the main-module.
if you only have one module, you have to tell your compiler that it is a
programm and not just a object-file.
----- Original Message -----
|
