Safe Haskell | None |
---|---|
Language | Haskell2010 |
Primary interface for looking up the programming language of a file or interacting with languages known to linguist (https:/github.comgithub/linguist).
Synopsis
- languagesForPath :: FilePath -> [Language]
- languages :: Map LanguageKey Language
- languagesByExtension :: Map String [LanguageKey]
- languagesByFileName :: Map String [LanguageKey]
- type LanguageKey = String
- data Language = Language {}
- languageName :: Language -> Text
Documentation
languagesForPath :: FilePath -> [Language] Source #
Find the set of possible languages for a given file path.
Multiple results will be returned for ambiguous files; for example, .md
files can be Markdown or GCC machine descriptions, and .php
files can be PHP or Hack source files.
type LanguageKey = String Source #
Type synonym for linguist's language name key.
Identifies a programming language.
Language | |
|
languageName :: Language -> Text Source #