gini-storage-0.1.0.0

Safe HaskellNone
LanguageHaskell2010

Gini.Storage.Types

Synopsis

Documentation

class HasStorageConfig env where #

An environment which contains a StorageConfig.

Minimal complete definition

storageConfigL

Methods

storageConfigL #

Arguments

:: Lens' env StorageConfig

Lens to get or set the StorageConfig

newtype CacheStorage #

Constructors

CacheStorage 

Fields

data StorageException #

Things that can go wrong in gini-storage.

Note: Many other exception types may be thrown from underlying libraries. Does not attempt to wrap these underlying exceptions.

Constructors

StorageExceptionOpenFailure !FilePath !SqliteException 
StorageExceptionMigrationFailure !FilePath !SqliteException 

data Amount #

Instances
Bounded Amount 
Instance details

Defined in Gini.Math.Amount.Internal

Eq Amount 
Instance details

Defined in Gini.Math.Amount.Internal

Methods

(==) :: Amount -> Amount -> Bool #

(/=) :: Amount -> Amount -> Bool #

Ord Amount 
Instance details

Defined in Gini.Math.Amount.Internal

Show Amount 
Instance details

Defined in Gini.Math.Amount.Internal

Storable Amount 
Instance details

Defined in Gini.Math.Amount.Internal

PersistField Amount 
Instance details

Defined in Gini.Math.Amount.Internal

Methods

toPersistValue :: Amount -> PersistValue

fromPersistValue :: PersistValue -> Either Text Amount

PersistFieldSql Amount 
Instance details

Defined in Gini.Math.Amount.Internal

Methods

sqlType :: Proxy Amount -> SqlType

Persist Amount 
Instance details

Defined in Gini.Math.Amount.Internal

Methods

put :: Amount -> Put ()

get :: Get Amount

Validity Amount 
Instance details

Defined in Gini.Math.Amount.Internal

Methods

validate :: Amount -> Validation

Prim Amount 
Instance details

Defined in Gini.Math.Amount.Internal

MonadThrow m => Fractional (m Amount) 
Instance details

Defined in Gini.Math.Amount.Internal

Methods

(/) :: m Amount -> m Amount -> m Amount #

recip :: m Amount -> m Amount #

fromRational :: Rational -> m Amount #

MonadThrow m => Num (m Amount) 
Instance details

Defined in Gini.Math.Amount.Internal

Methods

(+) :: m Amount -> m Amount -> m Amount #

(-) :: m Amount -> m Amount -> m Amount #

(*) :: m Amount -> m Amount -> m Amount #

negate :: m Amount -> m Amount #

abs :: m Amount -> m Amount #

signum :: m Amount -> m Amount #

fromInteger :: Integer -> m Amount #