Copyright | (C) CSIRO 2017-2018 |
---|---|
License | BSD3 |
Maintainer | Isaac Elliott <isaace71295@gmail.com> |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- data Module v a
- = ModuleEmpty
- | ModuleBlankFinal (Blank a)
- | ModuleBlank (Blank a) Newline (Module v a)
- | ModuleStatement (Statement v a) (Module v a)
Documentation
A Python Module
, which is stored as a sequence of statements.
A module corresponds to one source file of Python code.
ModuleEmpty | |
ModuleBlankFinal (Blank a) | |
ModuleBlank (Blank a) Newline (Module v a) | |
ModuleStatement (Statement v a) (Module v a) |
Instances
HasStatements Module Source # | |
Defined in Language.Python.Syntax.Module | |
Functor (Module v) Source # | |
Foldable (Module v) Source # | |
Defined in Language.Python.Syntax.Module fold :: Monoid m => Module v m -> m # foldMap :: Monoid m => (a -> m) -> Module v a -> m # foldr :: (a -> b -> b) -> b -> Module v a -> b # foldr' :: (a -> b -> b) -> b -> Module v a -> b # foldl :: (b -> a -> b) -> b -> Module v a -> b # foldl' :: (b -> a -> b) -> b -> Module v a -> b # foldr1 :: (a -> a -> a) -> Module v a -> a # foldl1 :: (a -> a -> a) -> Module v a -> a # elem :: Eq a => a -> Module v a -> Bool # maximum :: Ord a => Module v a -> a # minimum :: Ord a => Module v a -> a # | |
Traversable (Module v) Source # | |
Eq a => Eq (Module v a) Source # | |
Show a => Show (Module v a) Source # | |
HasNewlines (Module v a) Source # | |