hackage-security-0.3.0.0: Hackage security library

Safe HaskellNone
LanguageHaskell2010

Hackage.Security.Util.Some

Contents

Description

Hiding existentials

Synopsis

Documentation

data Some f Source

Constructors

forall a . Some (f a) 

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

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

Type checking

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