hpython-0.1: Syntax tree and DSL for Python

Copyright(C) CSIRO 2017-2018
LicenseBSD3
MaintainerIsaac Elliott <isaace71295@gmail.com>
Stabilityexperimental
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell2010

Language.Python.Syntax.AugAssign

Description

 
Synopsis

Documentation

data AugAssign a Source #

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 # 
Instance details

Defined in Language.Python.Syntax.AugAssign

Methods

fmap :: (a -> b) -> AugAssign a -> AugAssign b #

(<$) :: a -> AugAssign b -> AugAssign a #

Foldable AugAssign Source # 
Instance details

Defined in Language.Python.Syntax.AugAssign

Methods

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] #

null :: AugAssign a -> Bool #

length :: AugAssign a -> Int #

elem :: Eq a => a -> AugAssign a -> Bool #

maximum :: Ord a => AugAssign a -> a #

minimum :: Ord a => AugAssign a -> a #

sum :: Num a => AugAssign a -> a #

product :: Num a => AugAssign a -> a #

Traversable AugAssign Source # 
Instance details

Defined in Language.Python.Syntax.AugAssign

Methods

traverse :: Applicative f => (a -> f b) -> AugAssign a -> f (AugAssign b) #

sequenceA :: Applicative f => AugAssign (f a) -> f (AugAssign a) #

mapM :: Monad m => (a -> m b) -> AugAssign a -> m (AugAssign b) #

sequence :: Monad m => AugAssign (m a) -> m (AugAssign a) #

Eq a => Eq (AugAssign a) Source # 
Instance details

Defined in Language.Python.Syntax.AugAssign

Methods

(==) :: AugAssign a -> AugAssign a -> Bool #

(/=) :: AugAssign a -> AugAssign a -> Bool #

Show a => Show (AugAssign a) Source # 
Instance details

Defined in Language.Python.Syntax.AugAssign

HasTrailingWhitespace (AugAssign a) Source # 
Instance details

Defined in Language.Python.Syntax.AugAssign