Cabal-syntax-3.12.1.0: A library for working with .cabal files

Safe Haskell | None
Language | Haskell2010

Distribution.Types.AbiHash

Synopsis

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

# Documentation

data AbiHash Source #

ABI Hashes

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

This type is opaque since `Cabal-2.0`

Since: Cabal-syntax-2.0.0.2

#### Instances

Instances details

Parsec AbiHash Source # |
Instance details Defined in Distribution.Types.AbiHash Methods parsec :: CabalParsing m => m AbiHash Source #
Pretty AbiHash Source # |
Instance details Defined in Distribution.Types.AbiHash Methods pretty :: AbiHash -> Doc Source # prettyVersioned :: CabalSpecVersion -> AbiHash -> Doc Source #
Structured AbiHash Source # |
Instance details Defined in Distribution.Types.AbiHash Methods structure :: Proxy AbiHash -> Structure Source # structureHash' :: Tagged AbiHash MD5
Binary AbiHash Source # |
Instance details Defined in Distribution.Types.AbiHash Methods put :: AbiHash -> Put Source # get :: Get AbiHash Source # putList :: [AbiHash] -> Put Source #
NFData AbiHash Source # |
Instance details Defined in Distribution.Types.AbiHash Methods rnf :: AbiHash -> () Source #
IsString AbiHash Source # | `mkAbiHash` Since: Cabal-syntax-2.0.0.2
Instance details Defined in Distribution.Types.AbiHash Methods fromString :: String -> AbiHash #
Generic AbiHash Source # |

Instance details

Defined in Distribution.Types.AbiHash

Associated Types

type Rep AbiHash |
Instance details Defined in Distribution.Types.AbiHash type Rep AbiHash = D1 ('MetaData "AbiHash" "Distribution.Types.AbiHash" "Cabal-syntax-3.12.1.0-5c0e" 'True) (C1 ('MetaCons "AbiHash" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ShortText)))

Methods

from :: AbiHash -> Rep AbiHash x #

to :: Rep AbiHash x -> AbiHash #

Read AbiHash Source # |
Instance details Defined in Distribution.Types.AbiHash Methods readsPrec :: Int -> ReadS AbiHash # readList :: ReadS [AbiHash] # readPrec :: ReadPrec AbiHash # readListPrec :: ReadPrec [AbiHash] #
Show AbiHash Source # |
Instance details Defined in Distribution.Types.AbiHash Methods showsPrec :: Int -> AbiHash -> ShowS # show :: AbiHash -> String # showList :: [AbiHash] -> ShowS #
Eq AbiHash Source # |
Instance details Defined in Distribution.Types.AbiHash Methods (==) :: AbiHash -> AbiHash -> Bool # (/=) :: AbiHash -> AbiHash -> Bool #
type Rep AbiHash Source # |
Instance details Defined in Distribution.Types.AbiHash type Rep AbiHash = D1 ('MetaData "AbiHash" "Distribution.Types.AbiHash" "Cabal-syntax-3.12.1.0-5c0e" 'True) (C1 ('MetaCons "AbiHash" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ShortText)))

unAbiHash :: AbiHash -> String Source #

Convert `AbiHash` to `String`

Since: Cabal-syntax-2.0.0.2

mkAbiHash :: String -> AbiHash Source #

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-syntax-2.0.0.2