Copyright | (c) 2019-2020 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 :: HeadersConfig -> FileType -> HeaderConfig
- fileTypeByExt :: HeadersConfig -> Text -> Maybe FileType
- listExtensions :: HeadersConfig -> FileType -> [Text]
Documentation
:: HeadersConfig | license headers configuration |
-> FileType | selected |
-> HeaderConfig | appropriate |
Returns the proper HeaderConfig
for the given FileType
, selected
from the HeadersConfig
.
:: HeadersConfig | 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
.
:: HeadersConfig | license headers configuration |
-> FileType |
|
-> [Text] | list of appropriate file extensions |
Lists all recognized file extensions for given FileType
, using configured
values from the HeadersConfig
.