avro-0.6.2.1: bench/Bench/Deconflict/Writer.hs
{-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TemplateHaskell #-}
module Bench.Deconflict.Writer
where
import Control.DeepSeq (NFData)
import Data.Avro.Deriving
deriveAvroFromByteString [r|
{
"type": "record",
"name": "Outer",
"fields": [
{ "name": "name", "type": "string" },
{ "name": "inner", "type": {
"type": "record",
"name": "Inner",
"fields": [
{ "name": "id", "type": "int" }
]
}
},
{ "name": "other", "type": "Inner" }
]
}
|]
deriving instance NFData Inner
deriving instance NFData Outer