Distribution.Types.AbiHash

Cabal-3.2.0.0: A framework for packaging Haskell software

Safe Haskell | None
Language | Haskell2010

Distribution.Types.AbiHash

Synopsis

- data AbiHash
- unAbiHash :: AbiHash -> String
- mkAbiHash :: String -> AbiHash

# Documentation

data AbiHash #

ABI Hashes

Use `mkAbiHash` and `unAbiHash` to convert from/to a `String`.

This type is opaque since `Cabal-2.0`

Since: Cabal-2.0.0.2

#### Instances

Instances details

Eq AbiHash # |
Instance details Defined in Distribution.Types.AbiHash Methods (==) :: AbiHash -> AbiHash -> Bool # (/=) :: AbiHash -> AbiHash -> Bool #
Read AbiHash # |
Instance details Defined in Distribution.Types.AbiHash Methods readsPrec :: Int -> ReadS AbiHash Source # readList :: ReadS [AbiHash] Source # readPrec :: ReadPrec AbiHash Source # readListPrec :: ReadPrec [AbiHash] Source #
Show AbiHash # |
Instance details Defined in Distribution.Types.AbiHash Methods showsPrec :: Int -> AbiHash -> ShowS Source # show :: AbiHash -> String Source # showList :: [AbiHash] -> ShowS Source #
IsString AbiHash # | `mkAbiHash` Since: Cabal-2.0.0.2
Instance details Defined in Distribution.Types.AbiHash Methods fromString :: String -> AbiHash Source #
Generic AbiHash # |
Instance details Defined in Distribution.Types.AbiHash Associated Types type Rep AbiHash :: Type -> Type Source # Methods from :: AbiHash -> Rep AbiHash x Source # to :: Rep AbiHash x -> AbiHash Source #
Binary AbiHash # |
Instance details Defined in Distribution.Types.AbiHash Methods put :: AbiHash -> Put Source # get :: Get AbiHash Source # putList :: [AbiHash] -> Put Source #
NFData AbiHash # |
Instance details Defined in Distribution.Types.AbiHash Methods rnf :: AbiHash -> () Source #
Structured AbiHash # |
Instance details Defined in Distribution.Types.AbiHash Methods structure :: Proxy AbiHash -> Structure # structureHash' :: Tagged AbiHash MD5
Pretty AbiHash # |
Instance details Defined in Distribution.Types.AbiHash Methods pretty :: AbiHash -> Doc # prettyVersioned :: CabalSpecVersion -> AbiHash -> Doc #
Parsec AbiHash # |
Instance details Defined in Distribution.Types.AbiHash Methods parsec :: CabalParsing m => m AbiHash #
type Rep AbiHash # |
Instance details Defined in Distribution.Types.AbiHash type Rep AbiHash = D1 ('MetaData "AbiHash" "Distribution.Types.AbiHash" "Cabal-3.2.0.0" 'True) (C1 ('MetaCons "AbiHash" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ShortText)))

unAbiHash :: AbiHash -> String #

Construct a `AbiHash` from a `String`

`mkAbiHash` is the inverse to `unAbiHash`

Note: No validations are performed to ensure that the resulting `AbiHash` is valid

Since: Cabal-2.0.0.2

mkAbiHash :: String -> AbiHash #

Convert `AbiHash` to `String`

Since: Cabal-2.0.0.2