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

Safe HaskellNone

Language.Nomyx.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

mapMaybeM :: Monad m => (a -> m (Maybe b)) -> [a] -> m [b]Source

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