seat-arrangement-0.1.0.0
Safe HaskellNone
LanguageGHC2024

Constraint

Synopsis

Documentation

data NotEmpty #

A non-empty constraint, for containers it means 1+ inhabitants, for uuid it means that it's not zeroed, etc.

Instances

Instances details
Predicate NotEmpty UUID # 
Instance details

Defined in Constraint

KnownNat sc => Predicate NotEmpty (Set (Proposal sc)) # 
Instance details

Defined in Aggregate.Proposal

Predicate NotEmpty (Set Reservation) # 
Instance details

Defined in Aggregate.Reservation

data SeatCapacity (sc :: Nat) #

sc defines the upper bound capacity, aka the number of seats, range [1 - sc]

Instances

Instances details
KnownNat sc => Predicate NotEmpty (Set (Proposal sc)) # 
Instance details

Defined in Aggregate.Proposal

KnownNat sc => Predicate (SeatCapacity sc :: Type) (Set Reservation) # 
Instance details

Defined in Aggregate.Reservation

KnownNat sc => Predicate (SeatCapacity sc :: Type) (Bimap Passenger s) # 
Instance details

Defined in Aggregate.Assignment

data BoundedSeatNumber (sc :: Nat) #

sc upper bound (exclusive) seat number, range [0 - sc)

data UuidProblem #

Generic implementations

Constructors

UuidIsEmpty