Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Documentation
handleGetComments :: ScottyT AppM () Source #
getComments :: AquireComment m => Slug -> Maybe UserID -> m (Either ArticleError ManyComments) Source #
class Monad m => AquireComment m where Source #
findCommentsForArticle :: ArticleID -> Maybe UserID -> m (Either ArticleError ManyComments) Source #
Instances
(Monad m, MonadDB m, MonadUnliftIO m) => AquireComment m Source # | |
Defined in Conduit.Features.Articles.Comments.GetComments findCommentsForArticle :: ArticleID -> Maybe UserID -> m (Either ArticleError ManyComments) Source # |
toManyComments :: [(Entity Comment, Entity User, Value Bool)] -> ManyComments Source #
toOneComment :: (Entity Comment, Entity User, Value Bool) -> OneComment Source #