Chapter 11. Running GHC on Win32 systems

Table of Contents
11.1. Starting GHC on Win32 platforms
11.2. Interacting with the terminal
11.3. Differences in library behaviour
11.4. Using GHC (and other GHC-compiled executables) with cygwin
11.5. Building and using Win32 DLLs

11.1. Starting GHC on Win32 platforms

The installer that installs GHC on Win32 also sets up the file-suffix associations for ".hs" and ".lhs" files so that double-clicking them starts ghci.

Be aware of that ghc and ghci do require filenames containing spaces to be escaped using quotes:
  c:\ghc\bin\ghci "c:\\Program Files\\Haskell\\Project.hs"
If the quotes are left off in the above command, ghci will interpret the filename as two, "c:\\Program" and "Files\\Haskell\\Project.hs".