drasil-database-0.1.1.0: A framework for code and document generation for scientific software - Database SubPackage
Safe HaskellSafe-Inferred
LanguageHaskell2010

Database.Drasil.TypedUIDRef

Synopsis

Documentation

data TypedUIDRef typ #

UID references that contain information about the type of data the UID refers to, useful for type-safe dereferencing.

mkRef :: IsChunk t => t -> TypedUIDRef t #

Create a TypedUIDRef to a chunk.

typedFind :: IsChunk t => TypedUIDRef t -> ChunkDB -> Maybe t Source #

Find a chunk by its typed UID reference.

typedFindOrErr :: IsChunk t => TypedUIDRef t -> ChunkDB -> t Source #

Find a chunk by its typed UID reference, erroring if not found.