| 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 # | |
| Show Dot # | |
| HasTrailingWhitespace Dot # | |
| Defined in Language.Python.Syntax.Punctuation Methods | |
| HasNewlines Dot # | |
| Defined in Language.Python.Optics.Newlines Methods | |
The venerable comma separator
Constructors
| MkComma [Whitespace] | 
Instances
| Eq Comma # | |
| Show Comma # | |
| Generic Comma # | |
| HasTrailingWhitespace Comma # | |
| Defined in Language.Python.Syntax.Punctuation Methods | |
| HasNewlines Comma # | |
| Defined in Language.Python.Optics.Newlines Methods | |
| type Rep Comma # | |
| Defined in Language.Python.Syntax.Punctuation type Rep Comma = D1 (MetaData "Comma" "Language.Python.Syntax.Punctuation" "hpython-0.1.0.1-inplace" True) (C1 (MetaCons "MkComma" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [Whitespace]))) | |
Constructors
| MkColon [Whitespace] | 
Instances
| Eq Colon # | |
| Show Colon # | |
| Generic Colon # | |
| HasTrailingWhitespace Colon # | |
| Defined in Language.Python.Syntax.Punctuation Methods | |
| HasNewlines Colon # | |
| Defined in Language.Python.Optics.Newlines Methods | |
| type Rep Colon # | |
| Defined in Language.Python.Syntax.Punctuation type Rep Colon = D1 (MetaData "Colon" "Language.Python.Syntax.Punctuation" "hpython-0.1.0.1-inplace" 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 # | |
| Show Equals # | |
| HasTrailingWhitespace Equals # | |
| Defined in Language.Python.Syntax.Punctuation Methods | |
| HasNewlines Equals # | |
| Defined in Language.Python.Optics.Newlines Methods | |
Constructors
| MkAt [Whitespace] | 
Instances
| Eq At # | |
| Show At # | |
| HasTrailingWhitespace At # | |
| Defined in Language.Python.Syntax.Punctuation Methods trailingWhitespace :: Lens' At [Whitespace] # | |
| HasNewlines At # | |
| Defined in Language.Python.Optics.Newlines Methods | |