Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell98 |
- 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 Source
fromPathPiece :: Text -> Maybe s Source
toPathPiece :: s -> Text Source
class PathMultiPiece s where Source
fromPathMultiPiece :: [Text] -> Maybe s Source
toPathMultiPiece :: s -> [Text] Source
PathPiece a => PathMultiPiece [a] |
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