hpython-0.2: Python language tools

Copyright(C) CSIRO 2017-2019
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) #

HasAnn AugAssign Source # 
Instance details

Defined in Language.Python.Syntax.AugAssign

Methods

annot :: Lens' (AugAssign a) (Ann a) Source #

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

Generic (AugAssign a) Source # 
Instance details

Defined in Language.Python.Syntax.AugAssign

Associated Types

type Rep (AugAssign a) :: Type -> Type #

Methods

from :: AugAssign a -> Rep (AugAssign a) x #

to :: Rep (AugAssign a) x -> AugAssign a #

HasTrailingWhitespace (AugAssign a) Source # 
Instance details

Defined in Language.Python.Syntax.AugAssign

type Rep (AugAssign a) Source # 
Instance details

Defined in Language.Python.Syntax.AugAssign

type Rep (AugAssign a) = D1 (MetaData "AugAssign" "Language.Python.Syntax.AugAssign" "hpython-0.2-7fNN6PEHntyHCqZaN2NGK0" False) (C1 (MetaCons "MkAugAssign" PrefixI True) (S1 (MetaSel (Just "_augAssignAnn") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Ann a)) :*: (S1 (MetaSel (Just "_augAssignType") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 AugAssignOp) :*: S1 (MetaSel (Just "_augAssignWhitespace") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [Whitespace]))))