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

Swarm.Util.RingBuffer

Description

A rolling window of items for the purpose of maintaining a bounded-size debugging log of recent events.

Synopsis

Documentation

data RingBuffer a Source #

Instances

Instances details
ToJSON a => ToJSON (RingBuffer a) Source # 
Instance details

Defined in Swarm.Util.RingBuffer

ToSample (RingBuffer a) Source # 
Instance details

Defined in Swarm.Util.RingBuffer

Methods

toSamples :: Proxy (RingBuffer a) -> [(Text, RingBuffer a)] #

data BufferSize Source #

Isomorphic to the Maybe type

Constructors

Infinite 
Finite Int