| Copyright | (c) Raghu Kaippully 2020 |
|---|---|
| License | MPL-2.0 |
| Maintainer | rkaippully@gmail.com |
| Safe Haskell | None |
| Language | Haskell2010 |
WebGear.Trait.Path
Description
Traits related to the route path of a request.
Synopsis
- data Path (s :: Symbol)
- data PathVar tag (val :: Type)
- data PathVarFail
Documentation
data Path (s :: Symbol) Source #
A path component which is literally matched against the request but discarded after that.
data PathVar tag (val :: Type) Source #
A path variable that is extracted and converted to a value of
type val. The tag is usually a type-level symbol (string) to
uniquely identify this variable.
data PathVarFail Source #
Failure to extract a PathVar
Constructors
| PathVarNotFound | |
| PathVarParseError Text |
Instances
| Eq PathVarFail Source # | |
Defined in WebGear.Trait.Path | |
| Read PathVarFail Source # | |
Defined in WebGear.Trait.Path Methods readsPrec :: Int -> ReadS PathVarFail # readList :: ReadS [PathVarFail] # readPrec :: ReadPrec PathVarFail # readListPrec :: ReadPrec [PathVarFail] # | |
| Show PathVarFail Source # | |
Defined in WebGear.Trait.Path Methods showsPrec :: Int -> PathVarFail -> ShowS # show :: PathVarFail -> String # showList :: [PathVarFail] -> ShowS # | |