Safe Haskell | None |
---|---|
Language | Haskell2010 |
Hedgehog generators for types defined in the loc package.
Synopsis
- line :: Bounds Line -> Gen Line
- line' :: Gen Line
- defMaxLine :: Line
- column :: Bounds Column -> Gen Column
- column' :: Gen Column
- defMaxColumn :: Column
- loc :: Bounds Line -> Bounds Column -> Gen Loc
- loc' :: Gen Loc
- span :: Bounds Line -> Bounds Column -> Gen Span
- span' :: Gen Span
- area :: Bounds Line -> Bounds Column -> Gen Area
- area' :: Gen Area
- type Bounds a = (a, a)
- boundsSize :: Num n => (n, n) -> n
Line
generates a line number on the linear range a to b.line
a b
defMaxLine :: Line Source #
The default maximum line: 99.
Column
generates a column number on the linear range a to b.column
a b
column' :: Gen Column Source #
Generates a column number within the default bounds (1,
.defMaxColumn
)
defMaxColumn :: Column Source #
The default maximum column number: 99.
Loc
Span
Generates a Span
with start and end positions within the default line and
column bounds.
Area
Generator bounds
boundsSize :: Num n => (n, n) -> n Source #
The size of a range specified by Bounds
.
Assumes the upper bound is at least the lower bound.