Safe Haskell | None |
---|---|
Language | Haskell98 |
DaVinciBasic contains the code to do the following things: (1) get daVinci going (it calls it via a ChildProcess). (2) open new contexts. (3) pass on events and sort answers out for particular contexts. It uses the DaVinciTypes module to parse the different results, but makes minimal attempts to interpret the different datatypes (the main reason for doing so is to interpret DaVinciAnswer to work out what to do with a particular answer).
Documentation
Instances
Eq Context Source # | |
Ord Context Source # | |
Destroyable Context Source # | |
Defined in UDrawGraph.Basic | |
Destructible Context Source # | |
Defined in UDrawGraph.Basic |
newContext :: (DaVinciAnswer -> IO ()) -> IO Context Source #
doInContextGeneral :: DaVinciCmd -> Context -> IO DaVinciAnswer Source #
doInContext :: DaVinciCmd -> Context -> IO () Source #
withHandler :: (DaVinciAnswer -> IO ()) -> Context -> IO a -> IO a Source #
exitDaVinci :: Context -> IO () Source #