Skip to content

Latest commit

 

History

History
53 lines (37 loc) · 1.3 KB

README.md

File metadata and controls

53 lines (37 loc) · 1.3 KB

Haskell support in Atom

Adds syntax highlighting and snippets to Haskell files in Atom.

Grammars:

  • Haskell (*.hs)
  • Literate Haskell (*.lhs)
  • Cabal (*.cabal)

image

Based on Haskell TextMate bundle.

Auto-indent

If you don't like current auto-indentation settings, you can define your own regexp in config.cson (Edit -> Open Your Config), or disable it altogether, e.g.

To disable auto-indent:

".haskell.source":
  editor:
    increaseIndentPattern: ''

Note that regexp expression is using oniguruma for parsing, and it needs to be a string, not a javascript regexp. You'll also have to escape \.

By default, increaseIndentPattern has the following value:

".haskell.source":
  editor:
    increaseIndentPattern: '(((=|\\bdo|\\bwhere|\\bthen|\\belse|\\bof)\\s*)|(\\bif(?!.*\\bthen\\b.*\\belse\\b.*).*))$'

License

Copyright © 2015 Atom-Haskell

Contributors:

  • Ian D. Bollinger
  • Jared Roesch
  • Jesse Cooke
  • Matthew Griffith
  • mdgriffith
  • Michael Rawson
  • Nikolay Yakimov
  • Ross Ogilvie
  • samuela

See the LICENSE.md for details.