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