swarm-0.4: 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.

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

Documentation

data AssetData Source #

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 #

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 #

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 #