headroom-0.4.2.0: License Header Manager
Copyright(c) 2019-2021 Vaclav Svejcar
LicenseBSD-3-Clause
Maintainervaclav.svejcar@gmail.com
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

Headroom.Types

Description

Module containing most of the data types used by the application.

Synopsis

Error Data Types

data HeadroomError Source #

Top-level of the Headroom exception hierarchy.

Constructors

forall e.Exception e => HeadroomError e 

Helper Functions

fromHeadroomError Source #

Arguments

:: Exception e 
=> SomeException

exception to unwrap

-> Maybe e

unwrapped exception

Unwraps given exception from HeadroomError.

toHeadroomError Source #

Arguments

:: Exception e 
=> e

exception to wrap

-> SomeException

wrapped exception

Wraps given exception into HeadroomError.

Other Data Types

newtype CurrentYear Source #

Wraps the value of current year.

Constructors

CurrentYear 

Fields

data LicenseType Source #

Supported type of open source license.

Constructors

Apache2

support for Apache-2.0 license

BSD3

support for BSD-3-Clause license

GPL2

support for GNU GPL2 license

GPL3

support for GNU GPL3 license

MIT

support for MIT license

MPL2

support for MPL2 license

Instances

Instances details
Bounded LicenseType Source # 
Instance details

Defined in Headroom.Types

Enum LicenseType Source # 
Instance details

Defined in Headroom.Types

Eq LicenseType Source # 
Instance details

Defined in Headroom.Types

Ord LicenseType Source # 
Instance details

Defined in Headroom.Types

Show LicenseType Source # 
Instance details

Defined in Headroom.Types

FromJSON LicenseType Source # 
Instance details

Defined in Headroom.Types

EnumExtra LicenseType Source # 
Instance details

Defined in Headroom.Types