Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Conduit.Features.Articles.Comments.AddComment
Documentation
newtype CreateCommentAction Source #
Constructors
CreateCommentAction | |
Instances
FromJSON CreateCommentAction Source # | |
Defined in Conduit.Features.Articles.Comments.AddComment Methods parseJSON :: Value -> Parser CreateCommentAction # parseJSONList :: Value -> Parser [CreateCommentAction] # |
handleCommentCreation :: ScottyT AppM () Source #
createComment :: (AquireComment m, CreateComment m) => CreateCommentAction -> Slug -> UserID -> m (Either ArticleError OneComment) Source #
class Monad m => CreateComment m where Source #
Methods
insertComment :: CommentInfo -> m (Either ArticleError CommentID) Source #
Instances
(Monad m, MonadDB m, MonadUnliftIO m) => CreateComment m Source # | |
Defined in Conduit.Features.Articles.Comments.AddComment Methods insertComment :: CommentInfo -> m (Either ArticleError CommentID) Source # |
data CommentInfo Source #