HORIZON HASKELLDocslts/ghc-10.0.x8c2f8e82026-10-19Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8c2f8e8 · 2026-10-19

Modulehnix-store-remote-0.7.0.0Haskell2010

Data.Serializer.Example

  • 4 types
  • 10 values

Simple protocol

2 declarations
datadata OpCode
#

OpCode used to differentiate between operations

Instances7Bounded, Enum, Eq, Ord, Show, Generic, …
  • Bounded OpCodeDefined in hnix-store-remote-0.7.0.0 · Data.Serializer.Example
  • Enum OpCodeDefined in hnix-store-remote-0.7.0.0 · Data.Serializer.Example
  • Eq OpCodeDefined in hnix-store-remote-0.7.0.0 · Data.Serializer.Example
  • Ord OpCodeDefined in hnix-store-remote-0.7.0.0 · Data.Serializer.Example
  • Show OpCodeDefined in hnix-store-remote-0.7.0.0 · Data.Serializer.Example
  • Generic OpCodeDefined in hnix-store-remote-0.7.0.0 · Data.Serializer.Example
  • type Rep OpCode = D1 ('MetaData "OpCode" "Data.Serializer.Example" "hnix-store-remote-0.7.0.0-56neYTH6eG2Bb7RHZH54fz" 'False) (C1 ('MetaCons "OpCode_Int" 'PrefixI 'False) U1 :+: C1 ('MetaCons "OpCode_Bool" 'PrefixI 'False) U1)Defined in hnix-store-remote-0.7.0.0 · Data.Serializer.Example
datadata Cmd a where
#

Protocol operations

Constructors

Instances6TestEquality, GShow, Show, Eq, Arbitrary
  • TestEquality CmdDefined in hnix-store-remote-0.7.0.0 · Data.Serializer.Example
  • GShow CmdDefined in hnix-store-remote-0.7.0.0 · Data.Serializer.Example
  • Eq (Cmd a)Defined in hnix-store-remote-0.7.0.0 · Data.Serializer.Example
  • Show (Cmd a)Defined in hnix-store-remote-0.7.0.0 · Data.Serializer.Example
  • Eq (Some Cmd)Defined in hnix-store-remote-0.7.0.0 · Data.Serializer.Example
  • Arbitrary (Some Cmd)Defined in hnix-store-remote-0.7.0.0 · Data.Serializer.Example

Cmd Serializer

1 declaration

Runners

2 declarations

Custom errors

2 declarations

Erroring variants of cmdS

putS with throwError and MyPutError

getS with throwError and MyGetError

getS with fail

putS with fail

Elaborate

3 declarations