Safe Haskell | Safe-Infered |
---|
Web.PathPieces
Contents
- class PathPiece s where
- fromPathPiece :: Text -> Maybe s
- toPathPiece :: s -> Text
- class PathMultiPiece s where
- fromPathMultiPiece :: [Text] -> Maybe s
- toPathMultiPiece :: s -> [Text]
- toSinglePiece :: PathPiece p => p -> Text
- toMultiPiece :: PathMultiPiece ps => ps -> [Text]
- fromSinglePiece :: PathPiece p => Text -> Maybe p
- fromMultiPiece :: PathMultiPiece ps => [Text] -> Maybe ps
Documentation
class PathPiece s where
class PathMultiPiece s where
Instances
Deprecated
toSinglePiece :: PathPiece p => p -> Text
toMultiPiece :: PathMultiPiece ps => ps -> [Text]
fromSinglePiece :: PathPiece p => Text -> Maybe p
fromMultiPiece :: PathMultiPiece ps => [Text] -> Maybe ps