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

Safe HaskellNone

Language.Nomyx.Engine.Utils

Synopsis

Documentation

(===) :: (Typeable a, Typeable b, Eq b) => a -> b -> BoolSource

an equality that tests also the types.

replaceWithSource

Arguments

:: (a -> Bool)

Value to search

-> a

Value to replace it with

-> [a]

Input list

-> [a]

Output list

Replaces all instances of a value in a list by another value.

tracePN :: Monad m => Int -> String -> m ()Source

traceData :: Show a => String -> a -> aSource

sndMaybe :: (a, Maybe b) -> Maybe (a, b)Source

mapStateIO :: Show s => State s a -> StateT s IO aSource

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

selSource

Arguments

:: [a]

List of indices to select

-> [Int]

List of elements

-> [a]

List composed of elements selected from original set by indices provided