Copyright | (c) 2012-2021 Amy de Buitléir |
---|---|
License | BSD-style |
Maintainer | amy@nualeargais.ie |
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
A simple counter which persists between runs.
Synopsis
- class Counter c where
- type PersistentCounter = Persistent Int
- mkPersistentCounter :: FilePath -> PersistentCounter
Documentation
class Counter c where Source #
Instances
Counter PersistentCounter Source # | |
Defined in ALife.Creatur.Counter |
type PersistentCounter = Persistent Int Source #
mkPersistentCounter :: FilePath -> PersistentCounter Source #
Creates a counter that will store its value in the specified file.