path-extra-0.0.2: Chris Done's path library, enriched with URL-related goodies.

Safe HaskellNone
LanguageHaskell2010

Path.Extended

Contents

Synopsis

Types

data Location b t Source

A location for some base and type - internally uses Path.

Instances

Combinators

Parent Accessors

addParent :: Location Rel t -> Location Rel t Source

Prepend a parental accessor path - ../

delParent :: Location Rel t -> Location Rel t Source

Path

fromPath :: Path b t -> Location b t Source

This should be your entry point for creating a Location.

File Extensions

addFileExt :: String -> Location b File -> Location b File Source

delFileExt :: Location b File -> Location b File Source

Query Parameters

addQuery :: QueryParam -> Location b t -> Location b t Source

Appends a query parameter

(<&>) :: Location b t -> QueryParam -> Location b t infixl 7 Source

Fragment

(<#>) :: Location b t -> String -> Location b t infixl 8 Source