Hakyll.Core.Identifier

hakyll-4.8.3.2: A static website compiler library

Safe Haskell | None
Language | Haskell98

Hakyll.Core.Identifier

Description

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 :: String -> Identifier
- toFilePath :: Identifier -> FilePath
- identifierVersion :: Identifier -> Maybe String
- setVersion :: Maybe String -> Identifier -> Identifier

# Documentation

data Identifier #

Instances

Eq Identifier # |
Methods (==) :: Identifier -> Identifier -> Bool # (/=) :: Identifier -> Identifier -> Bool #
Ord Identifier # |
Methods 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 # |
Methods showsPrec :: Int -> Identifier -> ShowS # show :: Identifier -> String # showList :: [Identifier] -> ShowS #
IsString Identifier # |
Methods fromString :: String -> Identifier #
Binary Identifier # |
Methods put :: Identifier -> Put # get :: Get Identifier # putList :: [Identifier] -> Put #
NFData Identifier # |
Methods rnf :: Identifier -> () #

fromFilePath :: String -> Identifier #

Parse an identifier from a string

toFilePath :: Identifier -> FilePath #

Convert an identifier to a relative `FilePath`

identifierVersion :: Identifier -> Maybe String #

setVersion :: Maybe String -> Identifier -> Identifier #