Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data Identifier
- type WithPost = ReaderT Identifier BlogApi
- resource :: Resource BlogApi WithPost Identifier () Void
- postFromIdentifier :: Identifier -> TVar (Set Post) -> STM (Maybe Post)
Documentation
data Identifier Source
type WithPost = ReaderT Identifier BlogApi Source
Post extends the root of the API with a reader containing the ways to identify a Post in our URLs. Currently only by the title of the post.
postFromIdentifier :: Identifier -> TVar (Set Post) -> STM (Maybe Post) Source