Files
Ian Denhardt f569041319 Add examples from the tutorial to the examples/ directory.
This will be more handy, and it also makes sure they actually build
(provided we remember to sync them -- it would be good to automate
that). This caught the regressions fixed in the previous two commits.
2019-01-13 19:25:16 -05:00

12 lines
264 B
Haskell

{-# LANGUAGE DuplicateRecordFields #-}
module Examples.Serialization.HighLevel.Read (main) where
import Capnp.Gen.Addressbook.Pure
import Capnp (defaultLimit, getValue)
main :: IO ()
main = do
value <- getValue defaultLimit
print (value :: AddressBook)