Portability | unix |
---|---|
Stability | experimental |
Maintainer | Vincent Hanquez <vincent@snarc.org> |
Safe Haskell | None |
- data Ref
- isHex :: ByteString -> Bool
- isHexString :: [Char] -> Bool
- fromHex :: ByteString -> Ref
- fromHexString :: String -> Ref
- fromBinary :: ByteString -> Ref
- toBinary :: Ref -> ByteString
- toHex :: Ref -> ByteString
- toHexString :: Ref -> String
- refPrefix :: Ref -> Int
- cmpPrefix :: String -> Ref -> Ordering
- toFilePathParts :: Ref -> (String, String)
- hash :: ByteString -> Ref
- hashLBS :: ByteString -> Ref
Documentation
isHex :: ByteString -> BoolSource
isHexString :: [Char] -> BoolSource
fromHex :: ByteString -> RefSource
take a hexadecimal bytestring that represent a reference and turn into a ref
fromHexString :: String -> RefSource
take a hexadecimal string that represent a reference and turn into a ref
fromBinary :: ByteString -> RefSource
transform a bytestring that represent a binary bytestring and returns a ref.
toBinary :: Ref -> ByteStringSource
turn a reference into a binary bytestring
toHex :: Ref -> ByteStringSource
transform a ref into an hexadecimal bytestring
toHexString :: Ref -> StringSource
transform a ref into an hexadecimal string
toFilePathParts :: Ref -> (String, String)Source
returns the splitted format prefix/suffix for addressing the loose object database
hash :: ByteString -> RefSource
hash a bytestring into a reference
hashLBS :: ByteString -> RefSource