> Donald Bruce Stewart wrote:
> 
> >a) Compile your code with GHC instead of interpreting it. GHC is blazing 
> >fast.
> 
> That's one answer I suppose!  I quite liked using Hugs for that 
> particular program because it's a script that I didn't want to spend 
> time compiling.  Oh well, it's not that important.

You can use 'ghci' as well -- it's much like hugs.
  
> I did notice that the script runs much quicker with runghc rather than 
> runhugs.  Is there any way of making runghc work with a script whose 
> name doesn't end ".hs"?

Well, I know this works:

    $ cat A.lhs
    #!/usr/bin/env runhaskell
    > main = putStrLn "gotcha!"

    $ ./A.lhs 
    gotcha!

But for files with no .hs or .lhs extension? Anyone know of a trick?

-- Don
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to