|
Generics.MultiRec.Binary | Portability | non-portable | Stability | experimental | Maintainer | sfvisser@cs.uu.nl |
|
|
|
|
|
Description |
Generic Data.Binary instances.
You can use these generic functions to create a Data.Binary instance. For
example, for the Expr data type from the AST example from the MutliRec
distribution:
import Data.Binary
import Generics.MultiRec.Base
import Generics.MultiRec.Binary
instance Binary Expr where
put = gput AST
get = gget AST
|
|
Synopsis |
|
|
|
|
Generic Data.Binary instances.
|
|
class HBinary phi f where | Source |
|
| Methods | hput :: (forall ix'. phi ix' -> r ix' -> Put) -> phi ix -> f r ix -> Put | Source |
| | hget :: (forall ix'. El phi ix' => phi ix' -> Get (r ix')) -> phi ix -> Get (f r ix) | Source |
|
| | Instances | |
|
|
|
Generic binary Put.
|
|
|
Generic binary Get.
|
|
Produced by Haddock version 2.4.2 |