Copyright | (c) Nick Partridge 2016 |
---|---|
License | BSD-3 |
Maintainer | nkpart@gmail.com |
Safe Haskell | None |
Language | Haskell2010 |
This module defines lenses and prisms for Text.XML.Light
. The naming should be consistent:
- Prisms: an underscore followed by the name of the constructor they wrap.
- Lenses: To avoid clashes with Text.XML.Light, lenses are named as for the record field, with a suffix of
L
.
- currentL :: Lens' Cursor Content
- leftsL :: Lens' Cursor [Content]
- rightsL :: Lens' Cursor [Content]
- parentsL :: Lens' Cursor Path
- _Elem :: Prism' Content Element
- _Text :: Prism' Content CData
- _CRef :: Prism' Content String
- elNameL :: Lens' Element QName
- elAttribsL :: Lens' Element [Attr]
- elContentL :: Lens' Element [Content]
- elLineL :: Lens' Element (Maybe Line)
- attrKeyL :: Lens' Attr QName
- attrValL :: Lens' Attr String
- cdVerbatimL :: Lens' CData CDataKind
- cdDataL :: Lens' CData String
- cdLineL :: Lens' CData (Maybe Line)
- _CDataText :: Prism' CDataKind ()
- _CDataVerbatim :: Prism' CDataKind ()
- _CDataRaw :: Prism' CDataKind ()
- qNameL :: Lens' QName String
- qURIL :: Lens' QName (Maybe String)
- qPrefixL :: Lens' QName (Maybe String)
Cursor
Content
Elem
Attr
CData
CDataKind
_CDataText :: Prism' CDataKind () Source #
_CDataVerbatim :: Prism' CDataKind () Source #