Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data Predicates i = Predicates {
- generalCategory :: i -> GeneralCategory
- isLetter :: i -> Bool
- isMark :: i -> Bool
- isNumber :: i -> Bool
- isPunctuation :: i -> Bool
- isSymbol :: i -> Bool
- isSeparator :: i -> Bool
- predicates :: Predicates GeneralCategory
- mkPredicates :: (Char -> GeneralCategory) -> Predicates Char
Documentation
data Predicates i Source #
A set of predicate functions related to GeneralCategory
queries.
You can either destruct at top level or locally to get access to each of them.
Predicates | |
|
Instances
Contravariant Predicates Source # | |
Defined in Data.Char.GeneralCategory.Predicates contramap :: (a -> b) -> Predicates b -> Predicates a # (>$) :: b -> Predicates b -> Predicates a # |
predicates :: Predicates GeneralCategory Source #
A set of functions similiar to their counterparts found in Data.Char
but takes GeneralCategory
as argument.
mkPredicates :: (Char -> GeneralCategory) -> Predicates Char Source #
Takes a function that is equivalent to generalCategory
and returns the set of functions equivalent to those found in Data.Char,
but with the argument function serving instead.