Copyright | (C) CSIRO 2017-2019 |
---|---|
License | BSD3 |
Maintainer | Isaac Elliott <isaace71295@gmail.com> |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell2010 |
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.
MkAugAssign | |
|
Instances
data AugAssignOp Source #
Augmented assignment operators
PlusEq | += |
MinusEq | -= |
StarEq | *= |
AtEq | @= |
SlashEq | /= |
PercentEq | %= |
AmpersandEq | &= |
PipeEq | |= |
CaretEq | ^= |
ShiftLeftEq | <<= |
ShiftRightEq | >>= |
DoubleStarEq | **= |
DoubleSlashEq | //= |
Instances
Eq AugAssignOp Source # | |
Defined in Language.Python.Syntax.AugAssign (==) :: AugAssignOp -> AugAssignOp -> Bool # (/=) :: AugAssignOp -> AugAssignOp -> Bool # | |
Show AugAssignOp Source # | |
Defined in Language.Python.Syntax.AugAssign showsPrec :: Int -> AugAssignOp -> ShowS # show :: AugAssignOp -> String # showList :: [AugAssignOp] -> ShowS # |