Copyright | (C) CSIRO 2017-2019 |
---|---|
License | BSD3 |
Maintainer | Isaac Elliott <isaace71295@gmail.com> |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell2010 |
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.
Instances
Eq Dot Source # | |
Show Dot Source # | |
HasTrailingWhitespace Dot Source # | |
Defined in Language.Python.Syntax.Punctuation | |
HasNewlines Dot Source # | |
Defined in Language.Python.Optics.Newlines |
The venerable comma separator
Instances
Eq Comma Source # | |
Show Comma Source # | |
Generic Comma Source # | |
HasTrailingWhitespace Comma Source # | |
Defined in Language.Python.Syntax.Punctuation | |
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.3-inplace" True) (C1 (MetaCons "MkComma" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [Whitespace]))) |
Instances
Eq Colon Source # | |
Show Colon Source # | |
Generic Colon Source # | |
HasTrailingWhitespace Colon Source # | |
Defined in Language.Python.Syntax.Punctuation | |
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.3-inplace" True) (C1 (MetaCons "MkColon" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [Whitespace]))) |
MkSemicolon (Ann a) [Whitespace] |
Instances
Instances
Eq Equals Source # | |
Show Equals Source # | |
HasTrailingWhitespace Equals Source # | |
Defined in Language.Python.Syntax.Punctuation | |
HasNewlines Equals Source # | |
Defined in Language.Python.Optics.Newlines |
Instances
Eq At Source # | |
Show At Source # | |
HasTrailingWhitespace At Source # | |
Defined in Language.Python.Syntax.Punctuation | |
HasNewlines At Source # | |
Defined in Language.Python.Optics.Newlines |