Haskell Editor

The Haskell source editor provides syntax coloring, Code Assist (context sensitive code completion), bracket matching and other helpful functionality to make coding in Haskell more convenient. If HLint is installed in your system, suggestions for improving your code will be shown too.

The editor supports both the conventional and the literal style of source code. Which style is used is determined from the file extension of the source file (.hs and .lhs for conventional and literate style resp.).

Code Assist is triggered by pressing CTRL-Space when typing.

The Outline View shows the overall structure of the Haskell source file in the currently active editor.

Certain regions of the editor can be folded into one line and unfolded with the small '-' and '+' buttons in the left editor ruler.

Configuration

Many of the features of the generic text editor can be configured in the Preferences at General > Editors > Text Editors. Some Haskell specific settings can be found under Haskell > Editor

Key shortcuts

Beside the standard text editing functionality (like Copy/Cut/Paste, Undo and Redo etc.) there are the following Haskell-specific shortcuts:

Ctrl + /
Ctrl + 7
Comment (add -- to the start of the current line)
Ctrl + +Shift /
Ctrl + ß
Uncomment (remove -- from the start of the current line)
Home Go to the first non-whitespace character of the current line