Copyright | (C) CSIRO 2017-2018 |
---|---|
License | BSD3 |
Maintainer | Isaac Elliott <isaace71295@gmail.com> |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell2010 |
These types are used throughout the syntax tree to help preserve formatting.
Synopsis
- data Dot = MkDot [Whitespace]
- newtype Comma = MkComma [Whitespace]
- newtype Colon = MkColon [Whitespace]
- data Semicolon a = MkSemicolon a [Whitespace]
- newtype Equals = MkEquals [Whitespace]
- newtype At = MkAt [Whitespace]
Documentation
A period character, possibly followed by some whitespace.
Instances
Eq Dot Source # | |
Show Dot Source # | |
HasTrailingWhitespace Dot Source # | |
Defined in Language.Python.Syntax.Punctuation trailingWhitespace :: Lens' Dot [Whitespace] Source # | |
HasNewlines Dot Source # | |
The venerable comma separator
Instances
Eq Comma Source # | |
Show Comma Source # | |
HasTrailingWhitespace Comma Source # | |
Defined in Language.Python.Syntax.Punctuation trailingWhitespace :: Lens' Comma [Whitespace] Source # | |
HasNewlines Comma Source # | |
Instances
Eq Colon Source # | |
Show Colon Source # | |
HasTrailingWhitespace Colon Source # | |
Defined in Language.Python.Syntax.Punctuation trailingWhitespace :: Lens' Colon [Whitespace] Source # | |
HasNewlines Colon Source # | |
Instances
Functor Semicolon Source # | |
Foldable Semicolon Source # | |
Defined in Language.Python.Syntax.Punctuation fold :: Monoid m => Semicolon m -> m # foldMap :: Monoid m => (a -> m) -> Semicolon a -> m # foldr :: (a -> b -> b) -> b -> Semicolon a -> b # foldr' :: (a -> b -> b) -> b -> Semicolon a -> b # foldl :: (b -> a -> b) -> b -> Semicolon a -> b # foldl' :: (b -> a -> b) -> b -> Semicolon a -> b # foldr1 :: (a -> a -> a) -> Semicolon a -> a # foldl1 :: (a -> a -> a) -> Semicolon a -> a # toList :: Semicolon a -> [a] # length :: Semicolon a -> Int # elem :: Eq a => a -> Semicolon a -> Bool # maximum :: Ord a => Semicolon a -> a # minimum :: Ord a => Semicolon a -> a # | |
Traversable Semicolon Source # | |
Defined in Language.Python.Syntax.Punctuation | |
Eq a => Eq (Semicolon a) Source # | |
Show a => Show (Semicolon a) Source # | |
HasTrailingWhitespace (Semicolon a) Source # | |
Defined in Language.Python.Syntax.Punctuation trailingWhitespace :: Lens' (Semicolon a) [Whitespace] Source # | |
HasNewlines (Semicolon a) Source # | |
Instances
Eq Equals Source # | |
Show Equals Source # | |
HasTrailingWhitespace Equals Source # | |
Defined in Language.Python.Syntax.Punctuation trailingWhitespace :: Lens' Equals [Whitespace] Source # | |
HasNewlines Equals Source # | |
Instances
Eq At Source # | |
Show At Source # | |
HasTrailingWhitespace At Source # | |
Defined in Language.Python.Syntax.Punctuation trailingWhitespace :: Lens' At [Whitespace] Source # | |
HasNewlines At Source # | |