> Here's another one, using GHC 5.02
>
> [ian@urchin current]$ cat W.lhs
>
> > module Main where
>
> > main :: IO()
> > main = putStrLn $ show $ last [1..10]
>
> [ian@urchin current]$ ghc W.lhs -prof -auto-all -o W
> [ian@urchin current]$ ./W +RTS -h
> 10
> [ian@urchin current]$ ./
Here's another one, using GHC 5.02
[ian@urchin current]$ cat W.lhs
> module Main where
> main :: IO()
> main = putStrLn $ show $ last [1..10]
[ian@urchin current]$ ghc W.lhs -prof -auto-all -o W
[ian@urchin current]$ ./W +RTS -h
10
[ian@urchin current]$ ./W +RTS -c
10
[ian@urc