Visual Haskell's Hello, World

Esa Ilari Vuokko eivuokko at gmail.com
Wed Jan 3 05:23:33 EST 2007


Hi Bill,

On 1/2/07, Bill Mill <bill.mill+haskell at gmail.com> wrote:
> It seems trivial, but I think the contents of main.hs in the Visual Haskell
> default project should include a getChar:
>
> module Main where
>
> main = do
>         putStrLn "Hello, world!"
>         getChar
>
> The first thing a user is going to do on installation is hit the "build and
> execute" button, and the default project displays a window which then closes
> before the user can see if anything's happened.

I don't have Visual Studio or Visual Haskell installed right now, but
I recall that for most languages there is two ways to run a program:
debug and non-debug.  For haskell these would be the same at the
moment.  But there's also another diffrence: non-debug leaves console
window open after running the program.  I think typical key bindings
are F5 for debug run, and Ctrl+F5 for non-debug.

Best regards,
Esa Ilari Vuokko



More information about the Glasgow-haskell-bugs mailing list