----------------------------------------------------------------------------- -- -- Module : Data.Journal.Empty -- Copyright : (c) 2017 Brian W Bush -- License : MIT -- -- Maintainer : Brian W Bush -- Stability : Stable -- Portability : Portable -- -- | A journal that does no logging. -- ----------------------------------------------------------------------------- module Data.Journal.Empty ( -- * Types EmptyJournal(..) ) where import Data.Journal (Journal(..)) -- | A journal that does no logging. data EmptyJournal = EmptyJournal deriving (Eq, Read, Show) instance Journal EmptyJournal where append = const . const $ return () erase = const . const $ return () replay = const . const $ return [] clear = const $ return () close = const $ return ()