headroom-0.2.2.1: License Header Manager

Copyright(c) 2019-2020 Vaclav Svejcar
LicenseBSD-3-Clause
Maintainervaclav.svejcar@gmail.com
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

Headroom.Command.Readers

Description

This module contains custom readers required by the optparse-applicative library to parse data types such as LicenseType or FileType.

Synopsis

Documentation

parseLicenseAndFileType :: Text -> Maybe (LicenseType, FileType) Source #

Parses LicenseType and FileType from the input string, formatted as licenseType:fileType.

>>> parseLicenseAndFileType "bsd3:haskell"
Just (BSD3,Haskell)