Safe Haskell | None |
---|---|
Language | Haskell2010 |
Pattern related types
Documentation
type Matcher = ByteString -> Bool Source #
A matcher is a predicate defined over the binary representation of a value
Top patterns
A routing protocol specified by a pattern and a type.
Once a connection is established, clients:
- can send messages of the given type
- will receive all messages of the same type, that match the given pattern, sent by other agents
type Pattern = [Match [Bit]] Source #
A Pattern is just a list of matches, values are represented by their Flat binary serialisation
Match either a flattened value of any value of a given type
MatchValue v | Match the specified value |
MatchAny (Type AbsRef) | Match any value of the given type (wildcard) |
optPattern :: Pattern -> Pattern Source #
Optimise a Pattern by concatenating adjacent value matches