Copyright | (C) CSIRO 2017-2019 |
---|---|
License | BSD3 |
Maintainer | Isaac Elliott <isaace71295@gmail.com> |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell2010 |
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.
Negate (Ann a) [Whitespace] | -a |
Positive (Ann a) [Whitespace] | +a |
Complement (Ann a) [Whitespace] | ~a |