packages feed

IntervalMap-0.6.1.2 / 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` ()