creatur-5.9.30: Framework for artificial life experiments.
Copyright(c) 2014-2021 Amy de Buitléir
LicenseBSD-style
Maintaineramy@nualeargais.ie
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

ALife.Creatur.Database.CachedFileSystemInternal

Description

A module containing private CachedFileSystem internals. Most developers should use CachedFileSystem instead. This module is subject to change without notice.

Synopsis

Documentation

data CachedFSDatabase r Source #

A simple database where each record is stored in a separate file, and the name of the file is the record's key.

Constructors

CachedFSDatabase 

Fields

Instances

Instances details
Eq r => Eq (CachedFSDatabase r) Source # 
Instance details

Defined in ALife.Creatur.Database.CachedFileSystemInternal

Show r => Show (CachedFSDatabase r) Source # 
Instance details

Defined in ALife.Creatur.Database.CachedFileSystemInternal

SizedRecord r => Database (CachedFSDatabase r) Source # 
Instance details

Defined in ALife.Creatur.Database.CachedFileSystemInternal

Associated Types

type DBRecord (CachedFSDatabase r) Source #

type DBRecord (CachedFSDatabase r) Source # 
Instance details

Defined in ALife.Creatur.Database.CachedFileSystemInternal

trim :: SizedRecord r => Int -> [r] -> [r] Source #

mkCachedFSDatabase :: FilePath -> Int -> CachedFSDatabase r Source #

mkFSDatabase d (re)creates the FSDatabase in the directory d.