-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | A cffi-based python binding for X -- -- A cffi-based python binding for X, comparable to xpyb @package xcffib @version 1.6.2 module Data.XCB.Python.AST data Expr Var :: Ident -> Expr [var] :: Expr -> Ident Int :: Int -> Expr [int_value] :: Expr -> Int Bool :: Bool -> Expr [bool_value] :: Expr -> Bool None :: Expr Strings :: [String] -> Expr [strings_strings] :: Expr -> [String] Call :: Expr -> [Expr] -> Expr [call_fun] :: Expr -> Expr [call_args] :: Expr -> [Expr] CondExpr :: Expr -> Expr -> Expr -> Expr [ce_true_branch] :: Expr -> Expr [ce_conditon] :: Expr -> Expr [ce_false_branch] :: Expr -> Expr Subscript :: Expr -> Expr -> Expr [subscriptee] :: Expr -> Expr [subscript_expr] :: Expr -> Expr BinaryOp :: Op -> Expr -> Expr -> Expr [operator] :: Expr -> Op [binop_left] :: Expr -> Expr [binop_right] :: Expr -> Expr UnaryOp :: Op -> Expr -> Expr [operator] :: Expr -> Op [unop_arg] :: Expr -> Expr Dot :: Expr -> Ident -> Expr [dot_expr] :: Expr -> Expr [dot_attribute] :: Expr -> Ident Tuple :: [Expr] -> Expr [tuple_exprs] :: Expr -> [Expr] EmptyDict :: Expr Paren :: Expr -> Expr [paren_expr] :: Expr -> Expr type Suite = [Statement] data Statement Import :: Ident -> Statement [import_item] :: Statement -> Ident FromImport :: Ident -> Ident -> Statement [from_module] :: Statement -> Ident [from_item] :: Statement -> Ident Fun :: Ident -> [Ident] -> Suite -> Statement [fun_name] :: Statement -> Ident [fun_args] :: Statement -> [Ident] [fun_body] :: Statement -> Suite Decorated :: Ident -> Ident -> [Ident] -> Suite -> Statement [decorations] :: Statement -> Ident [fun_name] :: Statement -> Ident [fun_args] :: Statement -> [Ident] [fun_body] :: Statement -> Suite Class :: Ident -> [Ident] -> Suite -> Statement [class_name] :: Statement -> Ident [class_args] :: Statement -> [Ident] [class_body] :: Statement -> Suite Conditional :: Expr -> Suite -> Suite -> Statement [if_cond] :: Statement -> Expr [if_body] :: Statement -> Suite [else_body] :: Statement -> Suite Assign :: Expr -> Expr -> Statement [assign_to] :: Statement -> Expr [assign_expr] :: Statement -> Expr AugmentedAssign :: Expr -> Op -> Expr -> Statement [aug_assign_to] :: Statement -> Expr [aug_assign_op] :: Statement -> Op [aug_assign_expr] :: Statement -> Expr Return :: Maybe Expr -> Statement [return_expr] :: Statement -> Maybe Expr Pass :: Statement StmtExpr :: Expr -> Statement [stmt_expr] :: Statement -> Expr Raise :: Ident -> Statement [raise_exception] :: Statement -> Ident type Ident = String data Op Plus :: Op Minus :: Op Multiply :: Op FloorDivide :: Op BinaryAnd :: Op ShiftRight :: Op ShiftLeft :: Op Invert :: Op Equality :: Op LessThan :: Op Modulo :: Op class Pretty a pretty :: Pretty a => a -> Doc prettyText :: Pretty a => a -> String class PseudoExpr a getExpr :: PseudoExpr a => a -> Expr instance GHC.Show.Show Data.XCB.Python.AST.Op instance GHC.Classes.Ord Data.XCB.Python.AST.Op instance GHC.Classes.Eq Data.XCB.Python.AST.Op instance GHC.Show.Show Data.XCB.Python.AST.Expr instance GHC.Classes.Ord Data.XCB.Python.AST.Expr instance GHC.Classes.Eq Data.XCB.Python.AST.Expr instance GHC.Show.Show Data.XCB.Python.AST.Statement instance GHC.Classes.Ord Data.XCB.Python.AST.Statement instance GHC.Classes.Eq Data.XCB.Python.AST.Statement instance Data.XCB.Python.AST.PseudoExpr GHC.Base.String instance Data.XCB.Python.AST.PseudoExpr Data.XCB.Python.AST.Expr instance Data.XCB.Python.AST.Pretty Data.XCB.Python.AST.Op instance Data.XCB.Python.AST.Pretty Data.XCB.Python.AST.Ident instance Data.XCB.Python.AST.Pretty Data.XCB.Python.AST.Suite instance Data.XCB.Python.AST.Pretty Data.XCB.Python.AST.Statement instance Data.XCB.Python.AST.Pretty Data.XCB.Python.AST.Expr module Data.XCB.Python.PyHelpers mkRelImport :: String -> Statement mkAssign :: PseudoExpr a => a -> Expr -> Statement mkCall :: PseudoExpr a => a -> [Expr] -> Expr mkEnum :: String -> [(String, Expr)] -> Statement -- | Make an Expr out of a string like "foo.bar" describing the name. mkName :: String -> Expr mkDot :: PseudoExpr a => a -> String -> Expr -- | Make an attribute access, i.e. self.string. mkAttr :: String -> Expr mkIncr :: String -> Expr -> Statement mkClass :: String -> String -> Suite -> Statement mkEmptyClass :: String -> String -> Statement mkXClass :: String -> String -> Bool -> Suite -> Suite -> Statement mkStr :: String -> Expr mkUnpackFrom :: PseudoExpr a => a -> [String] -> String -> Suite mkDict :: String -> Statement mkDictUpdate :: String -> Int -> String -> Statement mkMethod :: String -> [Ident] -> Suite -> Statement mkReturn :: Expr -> Statement mkIf :: Expr -> Suite -> Statement notImplemented :: Statement module Data.XCB.Python.Parse parseXHeaders :: FilePath -> IO [XHeader] -- | Generate the code for a set of X headers. Note that the code is -- generated in dependency order, NOT in the order you pass them in. -- Thus, you get a string (a suggested filename) along with the python -- code for that XHeader back. xform :: [XHeader] -> [(String, Suite)] renderPy :: Suite -> String -- | Clone of python's struct.calcsize. calcsize :: String -> Int instance GHC.Show.Show Data.XCB.Python.Parse.TypeInfo instance GHC.Classes.Ord Data.XCB.Python.Parse.TypeInfo instance GHC.Classes.Eq Data.XCB.Python.Parse.TypeInfo instance GHC.Show.Show Data.XCB.Python.Parse.BindingPart