hw-prim-0.6.2.29: Primitive functions and data types

Safe HaskellNone
LanguageHaskell2010

HaskellWorks.Data.Positioning

Synopsis

Documentation

type Count = Word64 Source #

A value representing a count

type Position = Int64 Source #

A value representing a position

lastPositionOf :: Count -> Position Source #

Get largest position in a sequenced container of size count.

toCount :: ToCount a => a -> Count Source #

Convert a count to a count

toPosition :: ToPosition a => a -> Position Source #

Convert to a position