Safe Haskell | None |
---|---|
Language | Haskell2010 |
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
Synopsis
- data Identifier
- fromFilePath :: FilePath -> Identifier
- toFilePath :: Identifier -> FilePath
- identifierVersion :: Identifier -> Maybe String
- setVersion :: Maybe String -> Identifier -> Identifier
Documentation
data Identifier Source #
Instances
Eq Identifier Source # | |
Defined in Hakyll.Core.Identifier (==) :: Identifier -> Identifier -> Bool # (/=) :: Identifier -> Identifier -> Bool # | |
Ord Identifier Source # | |
Defined in Hakyll.Core.Identifier compare :: Identifier -> Identifier -> Ordering # (<) :: Identifier -> Identifier -> Bool # (<=) :: Identifier -> Identifier -> Bool # (>) :: Identifier -> Identifier -> Bool # (>=) :: Identifier -> Identifier -> Bool # max :: Identifier -> Identifier -> Identifier # min :: Identifier -> Identifier -> Identifier # | |
Show Identifier Source # | |
Defined in Hakyll.Core.Identifier showsPrec :: Int -> Identifier -> ShowS # show :: Identifier -> String # showList :: [Identifier] -> ShowS # | |
IsString Identifier Source # | |
Defined in Hakyll.Core.Identifier fromString :: String -> Identifier # | |
Binary Identifier Source # | |
Defined in Hakyll.Core.Identifier | |
NFData Identifier Source # | |
Defined in Hakyll.Core.Identifier rnf :: Identifier -> () # |
fromFilePath :: FilePath -> 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 #