lingo-0.1.0.1: File extension based programming language detection

Safe HaskellSafe
LanguageHaskell2010

Data.Languages

Description

Primary interface for looking up the programming language of a file or interacting with languages known to linguist (https:/github.comgithub/linguist).

Synopsis

Documentation

languageForPath :: FilePath -> Maybe Language Source #

Find the Language (if any) for a FilePath.

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.

data Language Source #

Identifies a programming language.

Instances
Eq Language Source # 
Instance details

Defined in Gen_Languages

Show Language Source # 
Instance details

Defined in Gen_Languages