burrito-1.0.2.0: Parse and render URI templates.

Safe HaskellSafe
LanguageHaskell98

Burrito.Type.Name

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 Name Source #

Represents a variable name, which is required to be non-empty. Variable names allow ASCII letters and numbers, underscores, percent encoded triples, and periods. However the periods cannot appear at the beginning or end, and there can't be more than one of them in a row.

Constructors

Name 

Fields

  • first :: VarChar

    The first character is any valid varchar, including underscores and percent encoded triples.

  • rest :: [(Bool, VarChar)]

    Every other character has the same constraints, but they may also be preceeded by a full stop (period). That's what the Bool represents: True means there is a period.

Instances
Eq Name Source # 
Instance details

Defined in Burrito.Type.Name

Methods

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

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

Show Name Source # 
Instance details

Defined in Burrito.Type.Name

Methods

showsPrec :: Int -> Name -> ShowS #

show :: Name -> String #

showList :: [Name] -> ShowS #

Lift Name Source # 
Instance details

Defined in Burrito.Type.Name

Methods

lift :: Name -> Q Exp #