clingo-0.2.0.0: Haskell bindings to the Clingo ASP solver

Safe HaskellNone
LanguageHaskell2010

Clingo.Raw.Types

Contents

Synopsis

Documentation

Basic types

type Logger a = ClingoWarning -> Ptr CChar -> Ptr a -> IO () Source #

Symbols

Model and Solving

newtype Model Source #

Constructors

Model (Ptr Model) 

Instances

Symbolic and Theory Atoms

Propagators

Program Builder

Configuration & Statistics

Program Inspection

data GroundProgramObserver a Source #

mkGpoEndStep :: (Ptr a -> IO CBool) -> IO (FunPtr (Ptr a -> IO CBool)) Source #

mkGpoRule :: (CBool -> Ptr Atom -> CSize -> Ptr Literal -> CSize -> Ptr a -> IO CBool) -> IO (FunPtr (CBool -> Ptr Atom -> CSize -> Ptr Literal -> CSize -> Ptr a -> IO CBool)) Source #

mkGpoProject :: (Ptr Atom -> CSize -> Ptr a -> IO CBool) -> IO (FunPtr (Ptr Atom -> CSize -> Ptr a -> IO CBool)) Source #

mkGpoAcycEdge :: (CInt -> CInt -> Ptr Literal -> CSize -> Ptr a -> IO CBool) -> IO (FunPtr (CInt -> CInt -> Ptr Literal -> CSize -> Ptr a -> IO CBool)) Source #

Control

data Part Source #

Constructors

Part 

Instances

Storable Part Source # 

Methods

sizeOf :: Part -> Int #

alignment :: Part -> Int #

peekElemOff :: Ptr Part -> Int -> IO Part #

pokeElemOff :: Ptr Part -> Int -> Part -> IO () #

peekByteOff :: Ptr b -> Int -> IO Part #

pokeByteOff :: Ptr b -> Int -> Part -> IO () #

peek :: Ptr Part -> IO Part #

poke :: Ptr Part -> Part -> IO () #