Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data Location b t
- type QueryParam = (String, Maybe String)
- addParent :: Location Rel t -> Location Rel t
- delParent :: Location Rel t -> Location Rel t
- fromPath :: Path b t -> Location b t
- setFileExt :: Maybe String -> Location b File -> Location b File
- addFileExt :: String -> Location b File -> Location b File
- delFileExt :: Location b File -> Location b File
- getFileExt :: Location b File -> Maybe String
- setQuery :: [QueryParam] -> Location b t -> Location b t
- addQuery :: QueryParam -> Location b t -> Location b t
- (<&>) :: Location b t -> QueryParam -> Location b t
- addQueries :: [QueryParam] -> Location b t -> Location b t
- delQuery :: Location b t -> Location b t
- getQuery :: Location b t -> [QueryParam]
- setFragment :: Maybe String -> Location b t -> Location b t
- addFragment :: String -> Location b t -> Location b t
- (<#>) :: Location b t -> String -> Location b t
- delFragment :: Location b t -> Location b t
Types
A location for some base and type - internally uses Path
.
type QueryParam = (String, Maybe String) Source
Combinators
Parent Accessors
Path
File Extensions
addFileExt :: String -> Location b File -> Location b File Source
delFileExt :: Location b File -> Location b File Source
getFileExt :: Location b File -> Maybe String Source
Query Parameters
setQuery :: [QueryParam] -> Location b t -> Location b t Source
addQuery :: QueryParam -> Location b t -> Location b t Source
Appends a query parameter
(<&>) :: Location b t -> QueryParam -> Location b t infixl 7 Source
addQueries :: [QueryParam] -> Location b t -> Location b t Source
getQuery :: Location b t -> [QueryParam] Source
Fragment
addFragment :: String -> Location b t -> Location b t Source
delFragment :: Location b t -> Location b t Source