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
 
shtr
------------------------------------------------------------------
 
 
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 -----
From: Suja
Sent: Tuesday, December 10, 2002 9:50 AM
Subject: help

Hi,
 
I want to know how to execute a haskell program that does not contain a main module. I would also like to know the difference between .lhs and .hs extensions.
 
 

Reply via email to