Safe Haskell | None |
---|---|
Language | Haskell98 |
An identifier is a type used to uniquely identify an item. An identifier is conceptually similar to a file path. Examples of identifiers are:
posts/foo.markdown
index
error/404
- data Identifier
- fromFilePath :: String -> Identifier
- toFilePath :: Identifier -> FilePath
- identifierVersion :: Identifier -> Maybe String
- setVersion :: Maybe String -> Identifier -> Identifier
Documentation
data Identifier Source #
fromFilePath :: String -> Identifier Source #
Parse an identifier from a string
toFilePath :: Identifier -> FilePath Source #
Convert an identifier to a relative FilePath
setVersion :: Maybe String -> Identifier -> Identifier Source #