Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Documentation
data CodeErrorLocation Source #
Describes the location of the error in a code sample.
See: newCodeErrorLocation
smart constructor.
Instances
newCodeErrorLocation :: CodeErrorLocation Source #
Create a value of CodeErrorLocation
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:column:CodeErrorLocation'
, codeErrorLocation_column
- The column number in the code. Defaults to 0
if unknown.
$sel:line:CodeErrorLocation'
, codeErrorLocation_line
- The line number in the code. Defaults to 0
if unknown.
$sel:span:CodeErrorLocation'
, codeErrorLocation_span
- The span/length of the error. Defaults to -1
if unknown.
codeErrorLocation_column :: Lens' CodeErrorLocation (Maybe Int) Source #
The column number in the code. Defaults to 0
if unknown.
codeErrorLocation_line :: Lens' CodeErrorLocation (Maybe Int) Source #
The line number in the code. Defaults to 0
if unknown.
codeErrorLocation_span :: Lens' CodeErrorLocation (Maybe Int) Source #
The span/length of the error. Defaults to -1
if unknown.