path-pieces-0.2.1: Components of paths.

Safe HaskellSafe
LanguageHaskell98

Web.PathPieces

Contents

Synopsis

Documentation

class PathPiece s where Source #

Minimal complete definition

fromPathPiece, toPathPiece

Instances
PathPiece Bool Source # 
Instance details

Defined in Web.PathPieces

PathPiece Int Source # 
Instance details

Defined in Web.PathPieces

PathPiece Int8 Source # 
Instance details

Defined in Web.PathPieces

PathPiece Int16 Source # 
Instance details

Defined in Web.PathPieces

PathPiece Int32 Source # 
Instance details

Defined in Web.PathPieces

PathPiece Int64 Source # 
Instance details

Defined in Web.PathPieces

PathPiece Integer Source # 
Instance details

Defined in Web.PathPieces

PathPiece Word Source # 
Instance details

Defined in Web.PathPieces

PathPiece Word8 Source # 
Instance details

Defined in Web.PathPieces

PathPiece Word16 Source # 
Instance details

Defined in Web.PathPieces

PathPiece Word32 Source # 
Instance details

Defined in Web.PathPieces

PathPiece Word64 Source # 
Instance details

Defined in Web.PathPieces

PathPiece () Source # 
Instance details

Defined in Web.PathPieces

PathPiece String Source # 
Instance details

Defined in Web.PathPieces

PathPiece Text Source # 
Instance details

Defined in Web.PathPieces

PathPiece Text Source # 
Instance details

Defined in Web.PathPieces

PathPiece Day Source # 
Instance details

Defined in Web.PathPieces

PathPiece a => PathPiece (Maybe a) Source # 
Instance details

Defined in Web.PathPieces

class PathMultiPiece s where Source #

Minimal complete definition

fromPathMultiPiece, toPathMultiPiece

Instances
PathPiece a => PathMultiPiece [a] Source # 
Instance details

Defined in Web.PathPieces

readFromPathPiece :: Read s => Text -> Maybe s Source #

A function for helping generate free PathPiece instances for enumeration data types that have derived Read and Show instances. Intended to be used like this:

data MyData = Foo | Bar | Baz
  deriving (Read,Show)
instance PathPiece MyData where
  fromPathPiece = readFromPathPiece
  toPathPiece = showToPathPiece

Since 0.2.1.

showToPathPiece :: Show s => s -> Text Source #

See the documentation for readFromPathPiece.

Since 0.2.1.

Deprecated

toSinglePiece :: PathPiece p => p -> Text Source #

Deprecated: Use toPathPiece instead of toSinglePiece

toMultiPiece :: PathMultiPiece ps => ps -> [Text] Source #

Deprecated: Use toPathMultiPiece instead of toMultiPiece

fromSinglePiece :: PathPiece p => Text -> Maybe p Source #

Deprecated: Use fromPathPiece instead of fromSinglePiece

fromMultiPiece :: PathMultiPiece ps => [Text] -> Maybe ps Source #

Deprecated: Use fromPathMultiPiece instead of fromMultiPiece