hasbolt-extras-0.0.0.7: Extras for hasbolt library

Safe HaskellNone
LanguageHaskell2010

Database.Bolt.Extras.Persisted

Synopsis

Documentation

type BoltId = Int Source #

BoltId is alias for Bolt Node, Relationship and URelationship identities.

data Persisted a Source #

Persisted is wrapper for some object that can be identified with BoltId.

Constructors

Persisted 

Fields

Instances

Functor Persisted Source # 

Methods

fmap :: (a -> b) -> Persisted a -> Persisted b #

(<$) :: a -> Persisted b -> Persisted a #

Eq a => Eq (Persisted a) Source # 

Methods

(==) :: Persisted a -> Persisted a -> Bool #

(/=) :: Persisted a -> Persisted a -> Bool #

Ord a => Ord (Persisted a) Source # 
Read a => Read (Persisted a) Source # 
Show a => Show (Persisted a) Source # 
Generic (Persisted a) Source # 

Associated Types

type Rep (Persisted a) :: * -> * #

Methods

from :: Persisted a -> Rep (Persisted a) x #

to :: Rep (Persisted a) x -> Persisted a #

GetBoltId (Persisted a) Source # 
type Rep (Persisted a) Source # 
type Rep (Persisted a) = D1 * (MetaData "Persisted" "Database.Bolt.Extras.Persisted" "hasbolt-extras-0.0.0.7-EXxtlIkdAqQ12iwS15Y8JD" False) (C1 * (MetaCons "Persisted" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "objectId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * BoltId)) (S1 * (MetaSel (Just Symbol "objectValue") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * a))))

fromInt :: Int -> BoltId Source #

This is just check that your BoltId is valid.