EditorConfig Haskell Core provides the same functionality as the EditorConfig C Core. EditorConfig Haskell core can be used as a command line program or as an importable library.
EditorConfig makes it easy to maintain the correct coding style when switching between different text editors and between different projects. The EditorConfig project maintains a file format and plugins for various text editors which allow this file format to be read and used by those editors. For information on the file format and supported text editors, see the EditorConfig website.
With cabal:
cabal install editor-config
For help with the EditorConfig core code, please write to our mailing list. Bugs and feature requests should be submitted to our issue tracker.
Basic example use of EditorConfig Haskell Core as a library:
import Data.EditorConfig
main = do
res <- getProperties "a.py"
case res of
Left e -> print e
Right prop -> print (indentStyle prop)