git-fmt-0.1.0.1: Custom git command for formatting code.

Copyright(c) Henry J. Wylde, 2015
LicenseBSD3
Maintainerpublic@hjwylde.com
Safe HaskellSafe
LanguageHaskell2010

Git.Fmt.Language

Contents

Description

Utilities for working with a general language.

Synopsis

Languages

data Language Source

Supported languages.

Constructors

Json 

languages :: [Language] Source

Array of supported languages.

languageOf :: String -> Maybe Language Source

Gets the language of an extension.

extension :: Language -> String Source

Gets the default extension of a language.

parser :: Language -> Parser Doc Source

Gets the parser for a language.

renderWithTabs :: Doc -> String Source

Renders the document using the default "style" and replaces any prefixed spaces with tabs.