Copyright | (C) CSIRO 2017-2018 |
---|---|
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.
Instances
Functor AugAssign Source # | |
Foldable AugAssign Source # | |
Defined in Language.Python.Syntax.AugAssign fold :: Monoid m => AugAssign m -> m # foldMap :: Monoid m => (a -> m) -> AugAssign a -> m # foldr :: (a -> b -> b) -> b -> AugAssign a -> b # foldr' :: (a -> b -> b) -> b -> AugAssign a -> b # foldl :: (b -> a -> b) -> b -> AugAssign a -> b # foldl' :: (b -> a -> b) -> b -> AugAssign a -> b # foldr1 :: (a -> a -> a) -> AugAssign a -> a # foldl1 :: (a -> a -> a) -> AugAssign a -> a # toList :: AugAssign a -> [a] # length :: AugAssign a -> Int # elem :: Eq a => a -> AugAssign a -> Bool # maximum :: Ord a => AugAssign a -> a # minimum :: Ord a => AugAssign a -> a # | |
Traversable AugAssign Source # | |
Defined in Language.Python.Syntax.AugAssign | |
Eq a => Eq (AugAssign a) Source # | |
Show a => Show (AugAssign a) Source # | |
HasTrailingWhitespace (AugAssign a) Source # | |
Defined in Language.Python.Syntax.AugAssign trailingWhitespace :: Lens' (AugAssign a) [Whitespace] Source # |
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 # |