interval-algebra-0.2.0: An implementation of Allen's interval algebra for temporal logic
Copyright(c) NoviSci Inc 2020
LicenseBSD3
Maintainerbsaul@novisci.com
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

IntervalAlgebra.Arbitrary

Description

 
Synopsis

Documentation

makePos :: (Ord b, Num b) => b -> b Source #

Internal function for converting a number to a strictly positive value.

safeInterval :: Intervallic a => a -> a -> Interval a Source #

A function for creating intervals when you think you know what you're doing.

safeInterval' :: IntervalSizeable a b => a -> b -> Interval a Source #

Safely create a valid 'Interval a' from two a by adding a positive dur to start to set the duration of the interval.

safeInterval'' :: Intervallic a => a -> a -> Maybe (Interval a) Source #

Create a 'Maybe Interval a' from two as.

Orphan instances

Arbitrary Day Source # 
Instance details

Methods

arbitrary :: Gen Day #

shrink :: Day -> [Day] #

Arbitrary (Interval Int) Source # 
Instance details

Arbitrary (Interval Day) Source # 
Instance details