| Copyright | (C) CSIRO 2017-2019 |
|---|---|
| License | BSD3 |
| Maintainer | Isaac Elliott <isaace71295@gmail.com> |
| Stability | experimental |
| Portability | non-portable |
| Safe Haskell | None |
| Language | Haskell2010 |
Language.Python.Syntax.Punctuation
Description
These types are used throughout the syntax tree to help preserve formatting.
Synopsis
- newtype Dot = MkDot [Whitespace]
- newtype Comma = MkComma [Whitespace]
- newtype Colon = MkColon [Whitespace]
- data Semicolon a = MkSemicolon (Ann a) [Whitespace]
- newtype Equals = MkEquals [Whitespace]
- newtype At = MkAt [Whitespace]
Documentation
A period character, possibly followed by some whitespace.
Constructors
| MkDot [Whitespace] |
Instances
| Eq Dot Source # | |
| Show Dot Source # | |
| HasTrailingWhitespace Dot Source # | |
Defined in Language.Python.Syntax.Punctuation Methods | |
| HasNewlines Dot Source # | |
Defined in Language.Python.Optics.Newlines | |
The venerable comma separator
Constructors
| MkComma [Whitespace] |
Instances
| Eq Comma Source # | |
| Show Comma Source # | |
| Generic Comma Source # | |
| HasTrailingWhitespace Comma Source # | |
Defined in Language.Python.Syntax.Punctuation Methods | |
| HasNewlines Comma Source # | |
Defined in Language.Python.Optics.Newlines | |
| type Rep Comma Source # | |
Defined in Language.Python.Syntax.Punctuation type Rep Comma = D1 (MetaData "Comma" "Language.Python.Syntax.Punctuation" "hpython-0.2-7fNN6PEHntyHCqZaN2NGK0" True) (C1 (MetaCons "MkComma" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [Whitespace]))) | |
Constructors
| MkColon [Whitespace] |
Instances
| Eq Colon Source # | |
| Show Colon Source # | |
| Generic Colon Source # | |
| HasTrailingWhitespace Colon Source # | |
Defined in Language.Python.Syntax.Punctuation Methods | |
| HasNewlines Colon Source # | |
Defined in Language.Python.Optics.Newlines | |
| type Rep Colon Source # | |
Defined in Language.Python.Syntax.Punctuation type Rep Colon = D1 (MetaData "Colon" "Language.Python.Syntax.Punctuation" "hpython-0.2-7fNN6PEHntyHCqZaN2NGK0" True) (C1 (MetaCons "MkColon" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [Whitespace]))) | |
Constructors
| MkSemicolon (Ann a) [Whitespace] |
Instances
Constructors
| MkEquals [Whitespace] |
Instances
| Eq Equals Source # | |
| Show Equals Source # | |
| HasTrailingWhitespace Equals Source # | |
Defined in Language.Python.Syntax.Punctuation Methods | |
| HasNewlines Equals Source # | |
Defined in Language.Python.Optics.Newlines | |
Constructors
| MkAt [Whitespace] |
Instances
| Eq At Source # | |
| Show At Source # | |
| HasTrailingWhitespace At Source # | |
Defined in Language.Python.Syntax.Punctuation Methods | |
| HasNewlines At Source # | |
Defined in Language.Python.Optics.Newlines | |