ouroboros-network-api
Safe HaskellSafe-Inferred
LanguageHaskell2010

Ouroboros.Network.Handshake.Acceptable

Synopsis

Documentation

data Accept vData Source #

A Maybe like type which better explains its purpose.

Constructors

Accept vData 
Refuse !Text 

Instances

Instances details
Show vData => Show (Accept vData) Source # 
Instance details

Defined in Ouroboros.Network.Handshake.Acceptable

Methods

showsPrec :: Int -> Accept vData -> ShowS #

show :: Accept vData -> String #

showList :: [Accept vData] -> ShowS #

Eq vData => Eq (Accept vData) Source # 
Instance details

Defined in Ouroboros.Network.Handshake.Acceptable

Methods

(==) :: Accept vData -> Accept vData -> Bool #

(/=) :: Accept vData -> Accept vData -> Bool #

class Acceptable v where Source #

Methods

acceptableVersion :: v -> v -> Accept v Source #

The acceptableVersion function ought to be symmetric, this guarantees that local and remote sides will agree on the same data.