Copyright | (c) NoviSci Inc 2020 |
---|---|
License | BSD3 |
Maintainer | bsaul@novisci.com |
Stability | experimental |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- makePos :: (Ord b, Num b) => b -> b
- safeInterval :: Intervallic a => a -> a -> Interval a
- safeInterval' :: IntervalSizeable a b => a -> b -> Interval a
- safeInterval'' :: Intervallic a => a -> a -> Maybe (Interval a)
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 a
s.