Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- newtype UUID = UUID ByteString
- data Location = L !UUID !Name
- data Object (m :: * -> *)
- = Directory DirContent
- | Blob (m FileContent) !(Maybe Hash)
- data ObjectMap (m :: * -> *) = ObjectMap {}
- type DirContent = Map Name UUID
- type FileContent = ByteString
- isBlob :: Object m -> Bool
- isDirectory :: Object m -> Bool
- data Name
Documentation
data Object (m :: * -> *) Source #
Directory DirContent | |
Blob (m FileContent) !(Maybe Hash) |
data ObjectMap (m :: * -> *) Source #
Instances
MonadThrow m => ApplyMonadTrans ObjectMap m Source # | |
Defined in Darcs.Patch.Prim.FileUUID.Apply runApplyMonad :: ApplyMonadOver ObjectMap m x -> ObjectMap m -> m (x, ObjectMap m) Source # | |
MonadThrow m => ApplyMonad ObjectMap (StateT (ObjectMap m) m) Source # | |
Defined in Darcs.Patch.Prim.FileUUID.Apply readFilePS :: ObjectIdOf ObjectMap -> StateT (ObjectMap m) m ByteString Source # | |
type ApplyMonadOperations ObjectMap Source # | |
Defined in Darcs.Patch.Prim.FileUUID.Apply | |
type ObjectIdOf ObjectMap Source # | |
Defined in Darcs.Patch.Prim.FileUUID.ObjectMap | |
type ApplyMonadOver ObjectMap m Source # | |
Defined in Darcs.Patch.Prim.FileUUID.Apply |
type FileContent = ByteString Source #
isDirectory :: Object m -> Bool Source #