Skip to content

wagonhq/language-haskell

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Haskell language support for Atom

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • CoffeeScript 100.0%