Copyright | (c) 2019-2020 Vaclav Svejcar |
---|---|
License | BSD-3 |
Maintainer | vaclav.svejcar@gmail.com |
Stability | experimental |
Portability | POSIX |
Safe Haskell | None |
Language | Haskell2010 |
This application can generate source code headers from templates for various
type of source code files. Such headers are usually represented as a top level
comment, the application must render such header with correct syntax.
The FileType
represents such type of source code file, which is recognized by
this application and for which the license headers can be manipulated.
Documentation
Represents supported type of source code file, where license headers may be added, replaced or removed.
CSS | CSS source code file |
Haskell | Haskell source code file |
HTML | HTML source code file |
Java | Java source code file |
JS | JavaScript source code file |
Scala | Scala source code file |
Instances
Bounded FileType Source # | |
Enum FileType Source # | |
Eq FileType Source # | |
Ord FileType Source # | |
Defined in Headroom.FileType | |
Read FileType Source # | |
Show FileType Source # | |
Returns FileType
for given file extension (without dot).
>>>
fileTypeByExt "hs"
Just Haskell
Lists all recognized file extensions for given FileType
.
>>>
listExtensions Haskell
["hs"]