Copyright | (c) 2019-2021 Vaclav Svejcar |
---|---|
License | BSD-3-Clause |
Maintainer | vaclav.svejcar@gmail.com |
Stability | experimental |
Portability | POSIX |
Safe Haskell | None |
Language | Haskell2010 |
Module providing functions for working with the FileType
, such as performing
detection based on the file extension, etc.
Synopsis
- configByFileType :: CtHeadersConfig -> FileType -> CtHeaderConfig
- fileTypeByExt :: CtHeadersConfig -> Text -> Maybe FileType
- listExtensions :: CtHeadersConfig -> FileType -> [Text]
Documentation
:: CtHeadersConfig | license headers configuration |
-> FileType | selected |
-> CtHeaderConfig | appropriate |
Returns the proper HeaderConfig
for the given FileType
, selected
from the HeadersConfig
.
:: CtHeadersConfig | license headers configuration |
-> Text | file extension (without dot) |
-> Maybe FileType | found |
Returns FileType
for given file extension (without dot), using configured
values from the HeadersConfig
.
:: CtHeadersConfig | license headers configuration |
-> FileType |
|
-> [Text] | list of appropriate file extensions |
Lists all recognized file extensions for given FileType
, using configured
values from the HeadersConfig
.