| hoogle | Source code | Contents | Index

Data.Range

Description
Invariants: Count >= 0, End >= Start, Start >= 0 Start/End are 0-based indicies Count may be maxBound::Int! The rangeStartCount and rangeStartEnd methods ensure the invariants, modifying the range if necessary
Documentation

data Range | Source

Instances

Show Range

rangeStart :: Range -> Int | Source

rangeCount :: Range -> Int | Source

rangeEnd :: Range -> Int | Source

rangeStartCount :: Int -> Int -> Range | Source

rangeStartEnd :: Int -> Int -> Range | Source

listRange :: Range -> [a] -> [a] | Source

mergeRanges :: [Range] -> [Range] | Source

Produced by Haddock version 2.4.2