Portability | portable |
---|---|
Stability | experimental |
Maintainer | amy@nualeargais.ie |
Safe Haskell | None |
A simple counter which persists between runs.
- class Counter c where
- type PersistentCounter = Persistent Int
- mkPersistentCounter :: FilePath -> PersistentCounter
Documentation
type PersistentCounter = Persistent IntSource
mkPersistentCounter :: FilePath -> PersistentCounterSource
Creates a counter that will store its value in the specified file.