uhc-util-0.1.7.0: UHC utilities

Safe HaskellSafe
LanguageHaskell98

UHC.Util.RLList

Contents

Synopsis

Run length list

newtype RLList a Source #

Constructors

RLList 

Fields

Instances

Eq a => Eq (RLList a) Source # 

Methods

(==) :: RLList a -> RLList a -> Bool #

(/=) :: RLList a -> RLList a -> Bool #

Ord a => Ord (RLList a) Source # 

Methods

compare :: RLList a -> RLList a -> Ordering #

(<) :: RLList a -> RLList a -> Bool #

(<=) :: RLList a -> RLList a -> Bool #

(>) :: RLList a -> RLList a -> Bool #

(>=) :: RLList a -> RLList a -> Bool #

max :: RLList a -> RLList a -> RLList a #

min :: RLList a -> RLList a -> RLList a #

Show a => Show (RLList a) Source # 

Methods

showsPrec :: Int -> RLList a -> ShowS #

show :: RLList a -> String #

showList :: [RLList a] -> ShowS #

Binary a => Binary (RLList a) Source # 

Methods

put :: RLList a -> Put #

get :: Get (RLList a) #

putList :: [RLList a] -> Put #

concat :: Eq a => RLList a -> RLList a -> RLList a Source #

toList :: RLList a -> [a] Source #

fromList :: Eq a => [a] -> RLList a Source #

Predicates, observations

isPrefixOf :: Eq a => RLList a -> RLList a -> Bool Source #

Misc

inits :: Eq a => RLList a -> [RLList a] Source #

init :: Eq a => RLList a -> RLList a Source #

initLast :: Eq a => RLList a -> Maybe (RLList a, a) Source #