Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newtype ReadingFrame = ReadingFrame {}
- nextReadingFrame :: ReadingFrame -> ReadingFrame
- prevReadingFrame :: ReadingFrame -> ReadingFrame
- fromIndex :: Index 1 -> ReadingFrame
Documentation
newtype ReadingFrame Source #
The Reading frame. Sequence indexing starts at position 1, which starts reading frame 1. Reading frame 2 and 3 start at position 2 and 3 respectively.
The reading frame should be constructed from an Index 1
with a smart
constructor to get the frame calculation right.
Instances
fromIndex :: Index 1 -> ReadingFrame Source #
TODO should this be a type class, since we might reasonably want to construct from a number of possible indices?