1{-# LANGUAGE TemplateHaskell #-}
3module Streamly.Test.Data.Serialize.CompatV0
8--------------------------------------------------------------------------------
10--------------------------------------------------------------------------------
12import Test.QuickCheck (Arbitrary, arbitrary, elements)
13import Streamly.Internal.Data.Serialize (Serialize)
14import qualified Streamly.Internal.Data.Serialize as Serialize
16--------------------------------------------------------------------------------
18--------------------------------------------------------------------------------
24 , theLastField :: Maybe String
28instance Arbitrary a => Arbitrary (Rec a) where
29 arbitrary = Rec <$> arbitrary <*> arbitrary <*> arbitrary
31$(Serialize.deriveSerializeWith
32 (Serialize.encodeRecordFields True Serialize.serializeConfig)
33 [d|instance Serialize a => Serialize (Rec a)|])
39 deriving (Eq, Show, Read)
41instance Arbitrary River where
42 arbitrary = elements [Ganga, Yamuna, Godavari]
44$(Serialize.deriveSerializeWith
45 (Serialize.encodeConstrNames True Serialize.serializeConfig)
46 [d|instance Serialize River|])
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list