clingo-0.2.0.0: Haskell bindings to the Clingo ASP solver

Safe HaskellNone
LanguageHaskell2010

Clingo.Internal.Symbol

Documentation

createSignature' Source #

Arguments

:: (MonadIO m, MonadThrow m) 
=> Text

Name

-> Natural

Arity

-> Bool

Positive

-> m (Signature s) 

createFunction' Source #

Arguments

:: (MonadIO m, MonadThrow m) 
=> Text

Function name

-> [Symbol s]

Arguments

-> Bool

Positive sign

-> m (Symbol s) 

class MonadSymbol m where Source #

Methods

createSignature :: Text -> Natural -> Bool -> m s (Signature s) Source #

Create a new signature with the solver, taking a name, an arity and a bool determining the sign.

createNumber :: Integral a => a -> m s (Symbol s) Source #

Create a number symbol.

createSupremum :: m s (Symbol s) Source #

Create a supremum symbol, #sup.

createInfimum :: m s (Symbol s) Source #

Create a infimum symbol, #inf.

createString :: Text -> m s (Symbol s) Source #

Construct a symbol representing a string.

createFunction :: Text -> [Symbol s] -> Bool -> m s (Symbol s) Source #

Construct a symbol representing a function or tuple from a name, arguments, and whether the sign is positive.