haskell-capnp icon indicating copy to clipboard operation
haskell-capnp copied to clipboard

Expose type IDs in the generated code somehow.

Open zenhack opened this issue 7 years ago • 1 comments

It's sometimes useful to be able to get at the type IDs for structs et al. We should facilitate this somehow. I'm thinking a type class:

class TypeID a where
    typeID :: Proxy a -> Word64

...plus generated instances.

zenhack avatar Sep 09 '18 02:09 zenhack

Note that I've been moving the library in the direction of using TypeApplications instead of Proxy. But we should still do this at some point.

zenhack avatar Jul 18 '21 16:07 zenhack