| 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.AugAssign
Description
Synopsis
- data AugAssign a = MkAugAssign {}
- data AugAssignOp
Documentation
Augmented assignments (PEP 203), such as:
x += y
or
x <<= 8
An AugAssign has an AugAssignOp and trailing whitespace. There is an
optional annotation, which can simply be () if no annotation is desired.
Constructors
| MkAugAssign | |
Fields
| |
Instances
data AugAssignOp Source #
Augmented assignment operators
Constructors
| PlusEq | += |
| MinusEq | -= |
| StarEq | *= |
| AtEq | @= |
| SlashEq | /= |
| PercentEq | %= |
| AmpersandEq | &= |
| PipeEq | |= |
| CaretEq | ^= |
| ShiftLeftEq | <<= |
| ShiftRightEq | >>= |
| DoubleStarEq | **= |
| DoubleSlashEq | //= |
Instances
| Eq AugAssignOp Source # | |
Defined in Language.Python.Syntax.AugAssign | |
| Show AugAssignOp Source # | |
Defined in Language.Python.Syntax.AugAssign Methods showsPrec :: Int -> AugAssignOp -> ShowS # show :: AugAssignOp -> String # showList :: [AugAssignOp] -> ShowS # | |