hw-prim-0.0.3.7: Primitive functions and data types

Safe HaskellNone
LanguageHaskell2010

HaskellWorks.Data.Positioning

Synopsis

Documentation

newtype Count Source #

A value representing a count

Constructors

Count 

Fields

Instances

Enum Count Source # 
Eq Count Source # 

Methods

(==) :: Count -> Count -> Bool #

(/=) :: Count -> Count -> Bool #

Integral Count Source # 
Num Count Source # 
Ord Count Source # 

Methods

compare :: Count -> Count -> Ordering #

(<) :: Count -> Count -> Bool #

(<=) :: Count -> Count -> Bool #

(>) :: Count -> Count -> Bool #

(>=) :: Count -> Count -> Bool #

max :: Count -> Count -> Count #

min :: Count -> Count -> Count #

Real Count Source # 

Methods

toRational :: Count -> Rational #

Show Count Source # 

Methods

showsPrec :: Int -> Count -> ShowS #

show :: Count -> String #

showList :: [Count] -> ShowS #

Random Count Source # 

Methods

randomR :: RandomGen g => (Count, Count) -> g -> (Count, g) #

random :: RandomGen g => g -> (Count, g) #

randomRs :: RandomGen g => (Count, Count) -> g -> [Count] #

randoms :: RandomGen g => g -> [Count] #

randomRIO :: (Count, Count) -> IO Count #

randomIO :: IO Count #

newtype Position Source #

Constructors

Position 

Fields

Instances

Enum Position Source # 
Eq Position Source # 
Integral Position Source # 
Num Position Source # 
Ord Position Source # 
Real Position Source # 
Show Position Source # 

lastPositionOf :: Count -> Position Source #

Get largest position in a sequenced container of size count.

toCount :: Position -> Count Source #

Convert a count to a count

toPosition :: Count -> Position Source #

Convert a count to a position