hackage-security-0.6.0.1: Hackage security library

Safe HaskellNone
LanguageHaskell2010

Hackage.Security.Util.Some

Contents

Description

Hiding existentials

Synopsis

Documentation

data Some f Source #

Constructors

Some (f a) 
Instances
ReportSchemaErrors m => FromJSON m (Some KeyType) Source # 
Instance details

Defined in Hackage.Security.Key

Methods

fromJSON :: JSValue -> m (Some KeyType) Source #

ReportSchemaErrors m => FromJSON m (Some PublicKey) Source # 
Instance details

Defined in Hackage.Security.Key

ReportSchemaErrors m => FromJSON m (Some Key) Source # 
Instance details

Defined in Hackage.Security.Key

Methods

fromJSON :: JSValue -> m (Some Key) Source #

Monad m => ToJSON m (Some KeyType) Source # 
Instance details

Defined in Hackage.Security.Key

Monad m => ToJSON m (Some PublicKey) Source # 
Instance details

Defined in Hackage.Security.Key

Monad m => ToJSON m (Some Key) Source # 
Instance details

Defined in Hackage.Security.Key

Methods

toJSON :: Some Key -> m JSValue Source #

(Typed f, SomeEq f) => Eq (Some f) Source # 
Instance details

Defined in Hackage.Security.Util.Some

Methods

(==) :: Some f -> Some f -> Bool #

(/=) :: Some f -> Some f -> Bool #

SomeShow f => Show (Some f) Source # 
Instance details

Defined in Hackage.Security.Util.Some

Methods

showsPrec :: Int -> Some f -> ShowS #

show :: Some f -> String #

showList :: [Some f] -> ShowS #

SomePretty f => Pretty (Some f) Source # 
Instance details

Defined in Hackage.Security.Util.Some

Methods

pretty :: Some f -> String Source #

Equality

data DictEq a where Source #

Constructors

DictEq :: Eq a => DictEq a 

class SomeEq f where Source #

Type f satisfies SomeEq f if f a satisfies Eq independent of a

Methods

someEq :: DictEq (f a) Source #

Instances
SomeEq KeyType Source # 
Instance details

Defined in Hackage.Security.Key

Methods

someEq :: DictEq (KeyType a) Source #

SomeEq PrivateKey Source # 
Instance details

Defined in Hackage.Security.Key

SomeEq PublicKey Source # 
Instance details

Defined in Hackage.Security.Key

SomeEq Key Source # 
Instance details

Defined in Hackage.Security.Key

Methods

someEq :: DictEq (Key a) Source #

Serialization

data DictShow a where Source #

Constructors

DictShow :: Show a => DictShow a 

class SomeShow f where Source #

Type f satisfies SomeShow f if f a satisfies Show independent of a

Methods

someShow :: DictShow (f a) Source #

Instances
SomeShow KeyType Source # 
Instance details

Defined in Hackage.Security.Key

SomeShow PrivateKey Source # 
Instance details

Defined in Hackage.Security.Key

SomeShow PublicKey Source # 
Instance details

Defined in Hackage.Security.Key

SomeShow Key Source # 
Instance details

Defined in Hackage.Security.Key

Methods

someShow :: DictShow (Key a) Source #

SomeShow IndexFile Source # 
Instance details

Defined in Hackage.Security.TUF.Layout.Index

Pretty-printing

data DictPretty a where Source #

Constructors

DictPretty :: Pretty a => DictPretty a 

class SomePretty f where Source #

Type f satisfies SomeShow f if f a satisfies Show independent of a

Methods

somePretty :: DictPretty (f a) Source #

Type checking

typecheckSome :: Typed f => Some f -> Some (TypeOf f) -> Bool Source #