mediabus-0.2.0.1: Multimedia streaming on top of Conduit

Safe HaskellNone
LanguageHaskell2010

Data.MediaBus.Monotone

Synopsis

Documentation

class LocalOrd a where Source #

Class of numbers that are monotone increasing (or decreasing) and have a relative order, that is not necessarily transitive.

For example, for a series of Word8 values: 0 64 128 192 0 64 128 ... could be interpreted as a monotone series of consecutive increasing values, that wrap around after 255. But note that the Ord instance is not sufficient to express that 0 is after 192, since 0 < 192.

Methods

succeeds :: a -> a -> Bool Source #

succeeds :: (Bounded a, Integral a) => a -> a -> Bool Source #