swarm-0.3.0.0: 2D resource gathering game with programmable robots
Safe HaskellSafe-Inferred
LanguageHaskell2010

Swarm.Game.Scenario.Objective.Validation

Description

Validity checking for Objective prerequisites

Synopsis

Documentation

validateObjectives :: MonadFail m => [Objective] -> m [Objective] Source #

Performs monadic validation before returning the "pure" construction of a wrapper record. This validation entails: 1) Ensuring that all goal references utilized in prerequisites actually exist 2) Ensuring that the graph of dependencies is acyclic.