hakyll-shortcode-0.0.2: A shortcode extension module for Hakyll

Copyright(c) Nathan Bloomfield 2017
LicenseGPL-3
Maintainernbloomf@gmail.com
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

Hakyll.Shortcode.Types

Description

The types reexported by this module (except for YesNo, which is a renaming of Bool) are safe strings. Each is an instance of the Validate class, and may only be constructed using the validate function. This ensures that the elements of a safe string type satisfy the constraints given in their Validate instance.

Synopsis

Documentation

validateMaybe :: Validate t => String -> Maybe t Source #

Apply validate, but map the error message to Nothing.

data Css_Class_Name Source #

Valid CSS class names: alphanumeric, hyphen, or underscore, but the first character must be alphanumeric. Note: this type represents only a subset of all valid class names. See the CSS grammar.

data MD5_Digest Source #

Strings of 64 hexadecimal digits. Case insensitive.

data YesNo Source #

Type representing Yes or No options for a parameter. A slightly more semantically meaningful version of Bool.

Constructors

Yes

The Yes option.

No

The No option.

Instances

Eq YesNo Source # 

Methods

(==) :: YesNo -> YesNo -> Bool #

(/=) :: YesNo -> YesNo -> Bool #

Show YesNo Source # 

Methods

showsPrec :: Int -> YesNo -> ShowS #

show :: YesNo -> String #

showList :: [YesNo] -> ShowS #

data CommaSep t Source #

Comma-separated lists of valid strings.

Instances

Eq t => Eq (CommaSep t) Source # 

Methods

(==) :: CommaSep t -> CommaSep t -> Bool #

(/=) :: CommaSep t -> CommaSep t -> Bool #

(Validate t, Show t) => Show (CommaSep t) Source # 

Methods

showsPrec :: Int -> CommaSep t -> ShowS #

show :: CommaSep t -> String #

showList :: [CommaSep t] -> ShowS #

Validate t => Validate (CommaSep t) Source #