Nomyx-Language-0.2.0: Language to express rules for Nomic

Safe HaskellNone




type Evaluate a = ErrorT String (State Game) aSource

evalExp :: Nomex a -> RuleNumber -> Evaluate aSource

evaluate an expression. The rule number passed is the number of the rule containing the expression.

findChoice :: (Eq a, Read a) => String -> Event (InputChoice a) -> aSource

getFreeNumber :: (Eq a, Num a, Enum a) => [a] -> aSource

evInputChoice :: (Eq d, Show d, Typeable d, Read d) => Event (InputChoice d) -> d -> Evaluate ()Source