Is there a way to load a file in hugs so that it will automatically run a
specific function from that file? For example, I have a script file
called "hello". It looks like this:
#!/usr/local/bin/hugs
hello :: IO ()
hello = putStr "Hello World!"
I can "./hello" and it will load the file in hugs. However, I have to
type "hello" at the prompt to get the output.
How can I make hugs run my hello function after loading without typing
"hello" and is there a way for hugs to exit automatically afterwards?
Thank you.
--
Claudio Sanchez, III