yesod-comments-0.3.4: A generic comments interface for a Yesod application

Portabilityunportable
Stabilityunstable
Maintainerpbrisbin@gmail.com

Yesod.Comments.Filters

Contents

Description

 

Synopsis

Documentation

applyFilters :: Yesod m => [Comment -> GHandler s m Bool] -> Comment -> GHandler s m BoolSource

Apply each filter a given list, return True if the Comment matches any one filter

Example filters

blacklistFile :: Yesod m => FilePath -> Comment -> GHandler s m BoolSource

Read IPs from a file, one per line, return True if the comment's IP matches one in the file