Chapter 13. Running GHC on Win32 systems

Table of Contents

13.1. Starting GHC on Windows platforms
13.2. Running GHCi on Windows
13.3. Interacting with the terminal
13.4. Differences in library behaviour
13.5. Using GHC (and other GHC-compiled executables) with cygwin
13.5.1. Background
13.5.2. The problem
13.5.3. Things to do
13.6. Building and using Win32 DLLs
13.6.1. Creating a DLL
13.6.2. Making DLLs to be called from other languages Using from VBA Using from C++

13.1.  Starting GHC on Windows 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".