Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Haskell IDE for Windows? [closed]

I really searched on this one. (E/TextMate is the closest I found in this topic, but it doesn't seem to be that big of deal)

I tried emacs, but I don't seem to find a Haskell Mode for Windows.. VisualHaskell doesn't seem to follow the new VisualStudio updates...

I could try VIM, but does the Haskell Mode works for Windows there?

Sigh... All the time the 'close but no cigare' feeling.

Is there actually so out there programming Haskell under Windows?

like image 780
Peter Avatar asked Apr 09 '09 13:04

Peter


People also ask

What IDE should I use for Haskell?

Leksah is an IDE for Haskell written in Haskell. Leksah is intended as a practical tool to support the Haskell development process. Leksah uses GTK+ as GUI Toolkit with the gtk2hs binding. It is platform independent and should run on any platform where GTK+, gtk2hs and GHC can be installed.

How do I run Haskell on IDE?

Using on WindowsOpen the command palette (ctrl/cmd+shift+P) and run ide-haskell-repl:setup-ghci-wrapper command. This will download ghci-wrapper.exe , place it into Atom's user directory, and change ide-haskell-repl configuration to use it.

Does Visual Studio support Haskell?

Haskell for Visual Studio Code. This extension adds language support for Haskell, powered by the Haskell Language Server. As almost all features are provided by the server you might find interesting read its documentation.

How do I install Haskell on Windows?

To set up Haskell environment on your Windows computer, go to their official website https://www.haskell.org/platform/windows.html and download the Installer according to your customizable architecture. Check out your system's architecture and download the corresponding setup file and run it.


2 Answers

I think the main IDE-ish options for Windows are, in order:

  1. Using Eclipse as your Haskell IDE
  2. Leksah, an integrated IDE for Haskell written in Haskell.
  3. Visual Haskell (unknown recent status)
  4. Vim + Haskell
  5. Emacs + Haskell

I use option 4.

like image 187
Don Stewart Avatar answered Sep 22 '22 05:09

Don Stewart


Tip for Emacs on Windows:

  • Download ntemacs and extract ntemacs24-bin-xxxxxxxx.7z in your favourite location e.g. D:\
  • Create desktop shortcut for D:\ntemacs24\bin\runemacs.exe and run Emacs
  • Go to C:\Users\UserName\AppData\Roaming\.emacs.d\
  • Create a directory haskell-mode and put in it files: haskell-mode.el, haskell-font-lock.el, haskell-doc.el from Haskell mode for Emacs
  • In ..\emacs.d\ create a file init.el

First 8 lines are optional and depend on the preferences.

(tool-bar-mode -1) (scroll-bar-mode -1) (setq-default truncate-lines t)  (setq line-number-mode t) (setq column-number-mode t)  (set-keyboard-coding-system 'cp1250) (prefer-coding-system 'windows-1250)  (set-face-attribute 'default nil :font "Consolas-11")  (setq-default indent-tabs-mode nil) (setq default-tab-width 4)  (load "~/.emacs.d/haskell-mode/haskell-mode")  (add-to-list 'auto-mode-alist '("\\.hs\\'" . haskell-mode)) (add-to-list 'auto-mode-alist '("\\.lhs\\'" . literate-haskell-mode)) (add-hook 'haskell-mode-hook 'turn-on-haskell-doc-mode) 

That's it!

Ps Komodo Edit has syntax support for Haskell.

like image 25
kros Avatar answered Sep 22 '22 05:09

kros