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 TextWithHighlights Source #
Provides text and information about where to highlight the text.
See: newTextWithHighlights
smart constructor.
Instances
newTextWithHighlights :: TextWithHighlights Source #
Create a value of TextWithHighlights
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:highlights:TextWithHighlights'
, textWithHighlights_highlights
- The beginning and end of the text that should be highlighted.
$sel:text:TextWithHighlights'
, textWithHighlights_text
- The text to display to the user.
textWithHighlights_highlights :: Lens' TextWithHighlights (Maybe [Highlight]) Source #
The beginning and end of the text that should be highlighted.
textWithHighlights_text :: Lens' TextWithHighlights (Maybe Text) Source #
The text to display to the user.