Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data Language
- class SLanguage (lang :: Language) where
- extensionsForLanguage :: Language -> [String]
- knownLanguage :: Language -> Bool
- forPath :: FilePath -> 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 'CodeQL Source # | |
SLanguage 'Go Source # | |
SLanguage 'Haskell Source # | |
SLanguage 'JSON Source # | |
SLanguage 'JSX Source # | |
SLanguage 'Java Source # | |
SLanguage 'JavaScript Source # | |
Defined in Source.Language reflect :: proxy 'JavaScript -> Language 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 'Unknown 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 #