morpheus-graphql-core-0.20.0: Morpheus GraphQL Core
Safe HaskellNone
LanguageHaskell2010

Data.Morpheus.Types.SelectionTree

Description

 
Synopsis

Documentation

class SelectionTree nodeType where Source #

The SelectionTree instance is a simple interface for interacting with morpheus's internal AST while keeping the ability to safely change the concrete representation of the AST. The set of operation is very limited on purpose.

Methods

isLeaf :: nodeType -> Bool Source #

leaf test: is the list of children empty?

getChildrenList :: nodeType -> [nodeType] Source #

Get the children

getName :: IsString name => nodeType -> name Source #

get a node's name