burrito-1.0.2.0: Parse and render URI templates.

Safe HaskellSafe
LanguageHaskell98

Burrito.Type.Modifier

Description

Warning: This module is not considered part of Burrito's public API. As such, it may change at any time. Use it with caution!.

Synopsis

Documentation

data Modifier Source #

Represents a modifier on a variable.

Constructors

Asterisk 
Colon Int

This assumes that the number passes the isValidMaxLength predicate. You should prefer using makeColon to create these values.

None 
Instances
Eq Modifier Source # 
Instance details

Defined in Burrito.Type.Modifier

Show Modifier Source # 
Instance details

Defined in Burrito.Type.Modifier

Lift Modifier Source # 
Instance details

Defined in Burrito.Type.Modifier

Methods

lift :: Modifier -> Q Exp #

makeColon :: Int -> Maybe Modifier Source #

If the number passes isValidMaxLength, returns a Colon modifier. Otherwise returns nothing.