IntervalMap-0.5.0.1 / bench / IntRange.hs
{-# LANGUAGE MultiParamTypeClasses #-}module IntRange (IntRange(..), Interval(..)) whereimport Data.IntervalMap.Generic.Intervalimport Control.DeepSeqdata IntRange = IntRange {-# UNPACK #-} !Int {-# UNPACK #-} !Int deriving (Eq, Ord, Show)instance Interval IntRange Int where lowerBound (IntRange lo _) = lo upperBound (IntRange _ hi) = hiinstance NFData IntRange where rnf a = a `seq` ()