Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module provides various helpers used by generated code; developers are not expected to invoke them directly.
These helpers are only used by the high-level api. Data.Capnp.GenHelpers defines helpers used by the low-level api.
Synopsis
- defaultStruct :: (Decerialize a, FromStruct ConstMsg (Cerial ConstMsg a)) => a
Documentation
defaultStruct :: (Decerialize a, FromStruct ConstMsg (Cerial ConstMsg a)) => a Source #
A valid implementation for Default
for any type that meets
the given constraints.