views:

1267

answers:

7

Unfortunately I don't have access to a *nix box at work or at home. The only way I can play with Haskell is on windows. Anyone here using Haskell on Windows? What's your setup?

+1  A: 

GHC is a state-of-the-art, open source, compiler and interactive environment for the functional language Haskell.

There is a Windows installer for GHC, but it for Version 6.4.2 .

A Windows .exe (not an .msi installer) for version 6.10.1 is at http://www.haskell.org/ghc/dist/6.10.1/ It is not clear when the current (GHC 6.10.1) version will offer a Windows installer.

gimel
A: 

I recall using hugs with some success a while ago. I was just playing around though.

1800 INFORMATION
The problem with hugs is that is... well a bit out of data. I was using ghc and then I had to come back on hugs for university course. I felt how many things is missing (to be honest - even downgrade from 6.10 to 6.8 was felt).
Maciej Piechotka
+12  A: 

I suggest The Glasgow Haskell Compiler 6.10.1 Windows Installer.

bhadra
A: 

Or You could partition your hard-drive a duel boot between linux and windows :)

Doesn't answer your question, but it is an alternative.

Sekhat
I second this suggestion.I've just install a new partition with Fedora 11, and Haskell. It took me about an hour (most of which was just machine time).A direct Windows installation of Haskell requires Cygwin, or MinGW. I've used both of these in the past. They work OK, but require a lot of fiddling, and, last time I checked, didn't work under Vista.If you've never installed a Linux partition, it may seem scary, but I think you'll find it easier than Cygwin or MinGW + Haskell.
Javaman59
+5  A: 

I've used Haskell on Windows, but only when forced to. Not because the combination Haskell+Windows is particularly bad, but just because I don't really like Windows.

My setup was basically the following:

As you can see I was trying to get an environment that was as similar to Unix as possible (without using cygwin, because I find it utterly confusing). Vim is my favourite editor. The reason for Visual Studio was that the C environment shipped with GHC doesn't cover all of Win32API. I used CMake to get a decent build environment.

Magnus
and console was needed why?
ja
The Windows "dos box" is a pile of crap, IMNSHO :-) Console is a properly resizable terminal window. MinGW does come with a terminal, but it mixes in some Unix-ness that isn't always desired.
Magnus
Add the powershell to the mix to get a decent shell, and you got a pretty strong developing environment for Haskell on windows.
Raoul Supercopter
A: 

You could install Sun's VirtualBox, and install Linux on it.

SomeDude
A: 

I based on Magnus solution. I have to state that I'm normally GNU/Linux user and I had to port low level packages (like this one).

Maciej Piechotka