Safe Haskell | None |
---|---|
Language | Haskell2010 |
Hackage.Security.Util.Some
Description
Hiding existentials
Synopsis
- data Some (f :: Type -> Type) = Some (f a)
- data DictEq a where
- class SomeEq (f :: Type -> Type) where
- data DictShow a where
- class SomeShow (f :: Type -> Type) where
- data DictPretty a where
- DictPretty :: forall a. Pretty a => DictPretty a
- class SomePretty (f :: Type -> Type) where
- somePretty :: DictPretty (f a)
- typecheckSome :: forall (f :: Type -> Type). Typed f => Some f -> Some (TypeOf f) -> Bool
Documentation
data Some (f :: Type -> Type) #
Constructors
Some (f a) |
Instances
ReportSchemaErrors m => FromJSON m (Some Key) # | |
ReportSchemaErrors m => FromJSON m (Some KeyType) # | |
ReportSchemaErrors m => FromJSON m (Some PublicKey) # | |
Monad m => ToJSON m (Some Key) # | |
Monad m => ToJSON m (Some KeyType) # | |
Monad m => ToJSON m (Some PublicKey) # | |
SomeShow f => Show (Some f) # | |
(Typed f, SomeEq f) => Eq (Some f) # | |
SomePretty f => Pretty (Some f) # | |
Defined in Hackage.Security.Util.Some |
Equality
class SomeEq (f :: Type -> Type) where #
Type f
satisfies SomeEq f
if f a
satisfies Eq
independent of a
Instances
SomeEq Key # | |
Defined in Hackage.Security.Key | |
SomeEq KeyType # | |
Defined in Hackage.Security.Key | |
SomeEq PrivateKey # | |
Defined in Hackage.Security.Key Methods someEq :: DictEq (PrivateKey a) # | |
SomeEq PublicKey # | |
Defined in Hackage.Security.Key |
Serialization
class SomeShow (f :: Type -> Type) where #
Type f
satisfies SomeShow f
if f a
satisfies Show
independent of a
Instances
SomeShow Key # | |
Defined in Hackage.Security.Key | |
SomeShow KeyType # | |
Defined in Hackage.Security.Key | |
SomeShow PrivateKey # | |
Defined in Hackage.Security.Key Methods someShow :: DictShow (PrivateKey a) # | |
SomeShow PublicKey # | |
Defined in Hackage.Security.Key | |
SomeShow IndexFile # | |
Defined in Hackage.Security.TUF.Layout.Index |
Pretty-printing
data DictPretty a where #
Constructors
DictPretty :: forall a. Pretty a => DictPretty a |
class SomePretty (f :: Type -> Type) where #
Type f
satisfies SomeShow f
if f a
satisfies Show
independent of a
Methods
somePretty :: DictPretty (f a) #
Instances
SomePretty IndexFile # | |
Defined in Hackage.Security.TUF.Layout.Index Methods somePretty :: DictPretty (IndexFile a) # |