headroom-0.4.0.0: License Header Manager
Copyright(c) 2019-2021 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

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

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

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