Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Language
- class SLanguage (lang :: Language) where
- extensionsForLanguage :: Language -> [String]
- knownLanguage :: Language -> Bool
- forPath :: AbsRel ar => File ar -> Language
- textToLanguage :: Text -> Language
- languageToText :: Language -> Text
Documentation
The various languages we support.
Instances
class SLanguage (lang :: Language) where Source #
Reifies a proxied type-level Language
to a value.
Instances
SLanguage 'Unknown Source # | |
SLanguage 'Go Source # | |
SLanguage 'Haskell Source # | |
SLanguage 'Java Source # | |
SLanguage 'JavaScript Source # | |
Defined in Source.Language reflect :: proxy 'JavaScript -> Language Source # | |
SLanguage 'JSON Source # | |
SLanguage 'JSX Source # | |
SLanguage 'Markdown Source # | |
SLanguage 'PHP Source # | |
SLanguage 'Python Source # | |
SLanguage 'Ruby Source # | |
SLanguage 'TypeScript Source # | |
Defined in Source.Language reflect :: proxy 'TypeScript -> Language Source # | |
SLanguage 'CodeQL Source # | |
extensionsForLanguage :: Language -> [String] Source #
knownLanguage :: Language -> Bool Source #
Predicate failing on Unknown
and passing in all other cases.
textToLanguage :: Text -> Language Source #
languageToText :: Language -> Text Source #