Installation of Mondrian and Haskell for .NET

Mondrian

Run the Mondrian Beta 5 installer to intall Mondrian. When finished you can run Mondrian from a command shell. If you do a full Mondrian install you will get the compiler, Mondrian for ASP.NET, sample programs and documentation installed in various sub-directories of the install directory, which defaults to <boot>:\Program Files\Mondrian.

Haskell

The Haskell for .NET compiler itself is included in the Mondrian distribution but you need the full GHC 4.08.1 compiler and Cygwin 1.1 to use it.

Once you have GHC 4.08.1 and Cygwin installed you can install Haskell for .NET. This is done using the batch file "install" found in the "\Mondrian\ghc". You should edit this file before running if you have installed GHC in a non-standard location. This script just updates to GHC compiler to enable it to output an intermediate program format, which is then compiled for .NET by the standard Mondrian compiler.

Caveat: Literate Haskell, Using -cpp, and maybe more

The monghc command used to compile Haskell for .NET code is just a batch file which calls ghc with the -J option (think JIT ;-)). However there is a caveat, the GHC compiler relies on the Cygwin toolset to run. The file monghc.bat sets things up so you don’t need to use Cygwin for compiling plain Haskell (.hs) files for .NET. However if you wish to use Literate Haskell, the preprocessor (-cpp), and possibly other options you may find monghc fails - most probably as perl has not been invoked automatically as a Windows 2000 shell doesn’t support doing so.

To if fails for your usage use a Cygwin session.

Of course if you have a full installation of Cygwin and GHC (just follow the instructions found here), you already know all about the pros’n’cons of Cygwin and probably don’t need to use our monghc.bat.

Last modified: 15/10/2001