swarm-0.5.0.0: 2D resource gathering game with programmable robots
LicenseBSD-3-Clause
Safe HaskellSafe-Inferred
LanguageHaskell2010

Swarm.Game.Failure

Description

A data type to represent system failures (as distinct from robot program failures).

These failures are often not fatal and serve to create common infrastructure for logging.

Synopsis

Documentation

data SystemFailure Source #

An enumeration of various types of failures (errors or warnings) that can occur.

Instances

Instances details
Show SystemFailure Source # 
Instance details

Defined in Swarm.Game.Failure

PrettyPrec SystemFailure Source # 
Instance details

Defined in Swarm.Game.Failure

Methods

prettyPrec :: Int -> SystemFailure -> Doc ann Source #

data AssetData Source #

Enumeration of various assets we can attempt to load.

Instances

Instances details
Show AssetData Source # 
Instance details

Defined in Swarm.Game.Failure

Eq AssetData Source # 
Instance details

Defined in Swarm.Game.Failure

PrettyPrec AssetData Source # 
Instance details

Defined in Swarm.Game.Failure

Methods

prettyPrec :: Int -> AssetData -> Doc ann Source #

data Asset Source #

Overarching enumeration of various assets we can attempt to load.

Instances

Instances details
Show Asset Source # 
Instance details

Defined in Swarm.Game.Failure

Methods

showsPrec :: Int -> Asset -> ShowS #

show :: Asset -> String #

showList :: [Asset] -> ShowS #

Eq Asset Source # 
Instance details

Defined in Swarm.Game.Failure

Methods

(==) :: Asset -> Asset -> Bool #

(/=) :: Asset -> Asset -> Bool #

PrettyPrec Asset Source # 
Instance details

Defined in Swarm.Game.Failure

Methods

prettyPrec :: Int -> Asset -> Doc ann Source #

data Entry Source #

Enumeration type to distinguish between directories and files.

Constructors

Directory 
File 

Instances

Instances details
Show Entry Source # 
Instance details

Defined in Swarm.Game.Failure

Methods

showsPrec :: Int -> Entry -> ShowS #

show :: Entry -> String #

showList :: [Entry] -> ShowS #

Eq Entry Source # 
Instance details

Defined in Swarm.Game.Failure

Methods

(==) :: Entry -> Entry -> Bool #

(/=) :: Entry -> Entry -> Bool #

PrettyPrec Entry Source # 
Instance details

Defined in Swarm.Game.Failure

Methods

prettyPrec :: Int -> Entry -> Doc ann Source #

data LoadingFailure Source #

An error that occurred while attempting to load some kind of asset.

Instances

Instances details
Show LoadingFailure Source # 
Instance details

Defined in Swarm.Game.Failure

PrettyPrec LoadingFailure Source # 
Instance details

Defined in Swarm.Game.Failure

Methods

prettyPrec :: Int -> LoadingFailure -> Doc ann Source #

data OrderFileWarning Source #

A warning that arose while processing an 00-ORDER.txt file.