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

Swarm.Web.Tournament.Type

Description

Types for Swarm tournaments.

Documentation

newtype UserAlias Source #

Constructors

UserAlias Text 

Instances

Instances details
ToJSON UserAlias Source # 
Instance details

Defined in Swarm.Web.Tournament.Type

Generic UserAlias Source # 
Instance details

Defined in Swarm.Web.Tournament.Type

Associated Types

type Rep UserAlias :: Type -> Type #

ToField UserAlias Source # 
Instance details

Defined in Swarm.Web.Tournament.Type

Methods

toField :: UserAlias -> SQLData #

type Rep UserAlias Source # 
Instance details

Defined in Swarm.Web.Tournament.Type

type Rep UserAlias = D1 ('MetaData "UserAlias" "Swarm.Web.Tournament.Type" "swarm-0.6.0.0-ERx1HMcRMba59aI2b6aNrS-swarm-tournament" 'True) (C1 ('MetaCons "UserAlias" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

data FileMetadata Source #

Constructors

FileMetadata 

Fields

Instances

Instances details
ToJSON FileMetadata Source # 
Instance details

Defined in Swarm.Web.Tournament.Type

Generic FileMetadata Source # 
Instance details

Defined in Swarm.Web.Tournament.Type

Associated Types

type Rep FileMetadata :: Type -> Type #

type Rep FileMetadata Source # 
Instance details

Defined in Swarm.Web.Tournament.Type

type Rep FileMetadata = D1 ('MetaData "FileMetadata" "Swarm.Web.Tournament.Type" "swarm-0.6.0.0-ERx1HMcRMba59aI2b6aNrS-swarm-tournament" 'False) (C1 ('MetaCons "FileMetadata" 'PrefixI 'True) (S1 ('MetaSel ('Just "filename") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "fileHash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Sha1)))

data TournamentGame Source #

Instances

Instances details
ToJSON TournamentGame Source # 
Instance details

Defined in Swarm.Web.Tournament.Type

Generic TournamentGame Source # 
Instance details

Defined in Swarm.Web.Tournament.Type

Associated Types

type Rep TournamentGame :: Type -> Type #

FromRow TournamentGame Source # 
Instance details

Defined in Swarm.Web.Tournament.Database.Query

type Rep TournamentGame Source # 
Instance details

Defined in Swarm.Web.Tournament.Type

type Rep TournamentGame = D1 ('MetaData "TournamentGame" "Swarm.Web.Tournament.Type" "swarm-0.6.0.0-ERx1HMcRMba59aI2b6aNrS-swarm-tournament" 'False) (C1 ('MetaCons "TournamentGame" 'PrefixI 'True) ((S1 ('MetaSel ('Just "originalFilename") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "scenarioUploader") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "scenarioHash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Sha1))) :*: (S1 ('MetaSel ('Just "submissionCount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: (S1 ('MetaSel ('Just "swarmGitSha1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Sha1) :*: S1 ('MetaSel ('Just "scenarioTitle") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))))

data TournamentSolution Source #

data GameWithSolutions Source #

Instances

Instances details
ToJSON GameWithSolutions Source # 
Instance details

Defined in Swarm.Web.Tournament.Type

Generic GameWithSolutions Source # 
Instance details

Defined in Swarm.Web.Tournament.Type

Associated Types

type Rep GameWithSolutions :: Type -> Type #

type Rep GameWithSolutions Source # 
Instance details

Defined in Swarm.Web.Tournament.Type

type Rep GameWithSolutions = D1 ('MetaData "GameWithSolutions" "Swarm.Web.Tournament.Type" "swarm-0.6.0.0-ERx1HMcRMba59aI2b6aNrS-swarm-tournament" 'False) (C1 ('MetaCons "GameWithSolutions" 'PrefixI 'True) (S1 ('MetaSel ('Just "theGame") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TournamentGame) :*: S1 ('MetaSel ('Just "theSolutions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [TournamentSolution])))

data SolutionCharacterization Source #

Instances

Instances details
ToJSON SolutionCharacterization Source # 
Instance details

Defined in Swarm.Web.Tournament.Type

Generic SolutionCharacterization Source # 
Instance details

Defined in Swarm.Web.Tournament.Type

Associated Types

type Rep SolutionCharacterization :: Type -> Type #

FromRow SolutionCharacterization Source # 
Instance details

Defined in Swarm.Web.Tournament.Database.Query

type Rep SolutionCharacterization Source # 
Instance details

Defined in Swarm.Web.Tournament.Type

type Rep SolutionCharacterization = D1 ('MetaData "SolutionCharacterization" "Swarm.Web.Tournament.Type" "swarm-0.6.0.0-ERx1HMcRMba59aI2b6aNrS-swarm-tournament" 'False) (C1 ('MetaCons "SolutionCharacterization" 'PrefixI 'True) ((S1 ('MetaSel ('Just "solutionWallTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Seconds) :*: S1 ('MetaSel ('Just "solutionTicks") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TickNumber)) :*: (S1 ('MetaSel ('Just "scenarioSeed") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Seed) :*: S1 ('MetaSel ('Just "solutionCodeMetrics") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ScenarioCodeMetrics))))

data SolutionFileCharacterization Source #

Orphan instances

FromHttpApiData Sha1 Source # 
Instance details

ToField Sha1 Source # 
Instance details

Methods

toField :: Sha1 -> SQLData #

ToCapture (Capture "sha1" Sha1) Source # 
Instance details

Methods

toCapture :: Proxy (Capture "sha1" Sha1) -> DocCapture #