serokell-util-0.1.5.0: General-purpose functions by Serokell

Safe HaskellNone
LanguageHaskell2010

Serokell.AcidState.Instances

Contents

Description

Helper instances for acid-state to remove boilerplate and introduce redundant instances for other data types.

Synopsis

Documentation

Orphan instances

SafeCopy Attosecond Source # 
SafeCopy Femtosecond Source # 
SafeCopy Picosecond Source # 
SafeCopy Nanosecond Source # 
SafeCopy Microsecond Source # 
SafeCopy Millisecond Source # 
SafeCopy Second Source # 
SafeCopy Minute Source # 
SafeCopy Hour Source # 
SafeCopy Day Source # 
SafeCopy Week Source # 
SafeCopy Fortnight Source # 
MonadThrow (Update s) Source # 

Methods

throwM :: Exception e => e -> Update s a #

MonadThrow (Query s) Source #

Usually Queries shouldn't throw anything. This is a dirty hack.

Methods

throwM :: Exception e => e -> Query s a #

(Eq a, Hashable a, SafeCopy a) => SafeCopy (HashSet a) Source # 
(Eq a, Hashable a, SafeCopy a, SafeCopy b) => SafeCopy (HashMap a b) Source #