| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Epidemic.Types.Population
Synopsis
- newtype Person = Person Integer
- newtype People = People (Vector Person)
- asPeople :: [Person] -> People
- includesPerson :: People -> Person -> Bool
- haveCommonPeople :: People -> People -> Bool
- nullPeople :: People -> Bool
- numPeople :: People -> Int
- addPerson :: Person -> People -> People
- removePerson :: Person -> People -> People
- personByteString :: Person -> Builder
Documentation
Instances
| Eq Person Source # | |
| Show Person Source # | |
| Generic Person Source # | |
| ToJSON Person Source # | |
Defined in Epidemic.Types.Population | |
| FromJSON Person Source # | |
| FromField Person Source # | |
Defined in Epidemic.Types.Population Methods parseField :: Field -> Parser Person # | |
| ToField Person Source # | |
Defined in Epidemic.Types.Population | |
| type Rep Person Source # | |
Defined in Epidemic.Types.Population | |
Instances
| Eq People Source # | |
| Show People Source # | |
| Generic People Source # | |
| ToJSON People Source # | |
Defined in Epidemic.Types.Population | |
| FromJSON People Source # | |
| FromField People Source # | |
Defined in Epidemic.Types.Population Methods parseField :: Field -> Parser People # | |
| ToField People Source # | |
Defined in Epidemic.Types.Population | |
| type Rep People Source # | |
Defined in Epidemic.Types.Population | |
includesPerson :: People -> Person -> Bool Source #
Predicate for whether a person is one of the people
haveCommonPeople :: People -> People -> Bool Source #
Predicate for whether two sets of people have any members in common.
nullPeople :: People -> Bool Source #
Predicate for whether there are any people
personByteString :: Person -> Builder Source #
A bytestring builder for a person