| 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.Operator.Unary
Description
Unary operators
Synopsis
- data UnOp a- = Negate (Ann a) [Whitespace]
- | Positive (Ann a) [Whitespace]
- | Complement (Ann a) [Whitespace]
 
Documentation
An UnOp is a unary operator in Python, such as - for negation.
 An operator is stored with an annotation and its trailing whitespace.
Constructors
| Negate (Ann a) [Whitespace] | -a | 
| Positive (Ann a) [Whitespace] | +a | 
| Complement (Ann a) [Whitespace] | ~a |