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 |
Synopsis
Documentation
data Correction Source #
A corrected misspelled word in a query.
See: newCorrection
smart constructor.
Correction' | |
|
Instances
newCorrection :: Correction Source #
Create a value of Correction
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:beginOffset:Correction'
, correction_beginOffset
- The zero-based location in the response string or text where the
corrected word starts.
$sel:correctedTerm:Correction'
, correction_correctedTerm
- The string or text of a corrected misspelled word in a query.
$sel:endOffset:Correction'
, correction_endOffset
- The zero-based location in the response string or text where the
corrected word ends.
$sel:term:Correction'
, correction_term
- The string or text of a misspelled word in a query.
correction_beginOffset :: Lens' Correction (Maybe Int) Source #
The zero-based location in the response string or text where the corrected word starts.
correction_correctedTerm :: Lens' Correction (Maybe Text) Source #
The string or text of a corrected misspelled word in a query.
correction_endOffset :: Lens' Correction (Maybe Int) Source #
The zero-based location in the response string or text where the corrected word ends.
correction_term :: Lens' Correction (Maybe Text) Source #
The string or text of a misspelled word in a query.