Safe Haskell | Safe |
---|---|
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
- languageForPath :: FilePath -> Maybe Language
- languages :: Map LanguageKey Language
- languagesByExtension :: Map Text [LanguageKey]
- languagesByFileName :: Map Text [LanguageKey]
- type LanguageKey = Text
- data Language = Language {
- languageID :: Integer
- languageName :: Text
- languageExtensions :: [Text]
- languageFileNames :: [Text]
Documentation
languages :: Map LanguageKey Language Source #
Complete map of programming languages known to linguist.
languagesByExtension :: Map Text [LanguageKey] Source #
Map of languages by file extension.
languagesByFileName :: Map Text [LanguageKey] Source #
Map of languages by filename.
type LanguageKey = Text Source #
Type synonym for linguist's language name key.
Identifies a programming language.
Language | |
|