Copyright | (c) Christian Gram Kalhauge 2018 |
---|---|
License | MIT |
Maintainer | kalhuage@cs.ucla.edu |
Safe Haskell | None |
Language | Haskell2010 |
Based on the LineNumberTable Attribute, as documented here.
Synopsis
- newtype LineNumberTable r = LineNumberTable {}
- type LineNumber = Word16
- type BinaryFormat = SizedList16 (Word16, LineNumber)
- linenumber :: Int -> LineNumberTable r -> Maybe LineNumber
- linenumber' :: Integral a => a -> LineNumberTable r -> Maybe LineNumber
Documentation
newtype LineNumberTable r Source #
The LineNumberTable
is just a mapping from offsets to linenumbers.
Instances
type LineNumber = Word16 Source #
type BinaryFormat = SizedList16 (Word16, LineNumber) Source #
Helper functions
linenumber :: Int -> LineNumberTable r -> Maybe LineNumber Source #
Returns the line number of an offset.
linenumber' :: Integral a => a -> LineNumberTable r -> Maybe LineNumber Source #
Returns the line number of an offset. Helper function that also does the conversion from integral to int.