Safe Haskell | None |
---|---|
Language | Haskell2010 |
Mid-level parsers for XML comments
All documentation examples assume the following setup:
:set -XOverloadedStrings import Data.Attoparsec.ByteString
Synopsis
- comment :: CharParsing m => Monad m => m Text
Documentation
>>>
:set -XOverloadedStrings
>>>
import Data.Attoparsec.ByteString
comment :: CharParsing m => Monad m => m Text Source #
https://www.w3.org/TR/REC-xml/#NT-Comment
>>>
parseOnly comment "<!-- declarations for <head> & <body> -->"
Right " declarations for <head> & <body> ">>>
parseOnly comment "<!-- B+, B, or B--->"
Right " B+, B, or B-"