derive-0.1.4: A program and library to derive instances for data typesSource codeContentsIndex
Derivation for Data.Binary's Binary class for serializing values. The generated instances implement a very simple tagged data format. First, the (0-based) constructor number is stored, in the smallest of 0, 1, 2, or 4 bytes that can represent the entire range. Then, the constructor's arguments are stored, in order, using the Binary instances in scope.
makeBinary :: DerivationSource
Produced by Haddock version 2.4.2