Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newtype PathDisplay a t = PathDisplay (Path a t)
- newtype WithinDisplay a t = WithinDisplay (Within a t)
- viewContent :: Value -> Text
- withContent :: Text -> Value -> Value
- viewSrcPath :: Value -> Text
- withSrcPath :: Text -> Value -> Value
- viewBaseUrl :: Value -> Text
- withBaseUrl :: Text -> Value -> Value
- viewFullUrl :: Value -> Text
- withFullUrl :: Text -> Value -> Value
- viewImage :: Value -> Text
- viewUrl :: Value -> Text
- withUrl :: Text -> Value -> Value
- enrichFullUrl :: Text -> Value -> Value
- enrichUrl :: (Text -> Text) -> Value -> Value
- withHtmlExtension :: MonadThrow m => Path Rel File -> m (Path Rel File)
- withMarkdownExtension :: MonadThrow m => Path Rel File -> m (Path Rel File)
- withHaskellExtension :: MonadThrow m => Path Rel File -> m (Path Rel File)
- toGroundedUrl :: Path Rel File -> Text
- generateSupposedUrl :: MonadThrow m => Path Rel File -> m Text
- enrichSupposedUrl :: MonadThrow m => Value -> m Value
- loadMarkdownAsJSON :: (MonadAction m, MonadThrow m) => ReaderOptions -> WriterOptions -> Within Rel (Path Rel File) -> m Value
- immediateShoots :: Cofree [] a -> [a]
Documentation
newtype PathDisplay a t Source #
PathDisplay (Path a t) |
Instances
Display (PathDisplay a t) Source # | |
Defined in Shakebook.Data display :: PathDisplay a t -> Utf8Builder # textDisplay :: PathDisplay a t -> Text # |
newtype WithinDisplay a t Source #
WithinDisplay (Within a t) |
Instances
Display t => Display [WithinDisplay a t] Source # | |
Defined in Shakebook.Data display :: [WithinDisplay a t] -> Utf8Builder # textDisplay :: [WithinDisplay a t] -> Text # | |
Display t => Display (WithinDisplay a t) Source # | |
Defined in Shakebook.Data display :: WithinDisplay a t -> Utf8Builder # textDisplay :: WithinDisplay a t -> Text # |
viewContent :: Value -> Text Source #
View the "content" field of a JSON value.
viewSrcPath :: Value -> Text Source #
View the "src-path" field of a JSON Value.
viewBaseUrl :: Value -> Text Source #
View the "base-url" of a JSON Value.
viewFullUrl :: Value -> Text Source #
View the "full-url" of a JSON Value.
enrichUrl :: (Text -> Text) -> Value -> Value Source #
Assuming a 'src-path' field, enrich using withUrl using a Text -> Text transformation.
withHtmlExtension :: MonadThrow m => Path Rel File -> m (Path Rel File) Source #
withMarkdownExtension :: MonadThrow m => Path Rel File -> m (Path Rel File) Source #
withHaskellExtension :: MonadThrow m => Path Rel File -> m (Path Rel File) Source #
generateSupposedUrl :: MonadThrow m => Path Rel File -> m Text Source #
enrichSupposedUrl :: MonadThrow m => Value -> m Value Source #
loadMarkdownAsJSON :: (MonadAction m, MonadThrow m) => ReaderOptions -> WriterOptions -> Within Rel (Path Rel File) -> m Value Source #
Get a JSON Value of Markdown Data with markdown body as "contents" field and the srcPath as "srcPath" field.
immediateShoots :: Cofree [] a -> [a] Source #