1{-# LANGUAGE TemplateHaskell #-}
3module Streamly.Test.Data.Serialize.CompatV1
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
25 , aNewField :: Maybe Char
29instance Arbitrary a => Arbitrary (Rec a) where
30 arbitrary = Rec <$> arbitrary <*> arbitrary <*> arbitrary <*> arbitrary
32$(Serialize.deriveSerializeWith
33 (Serialize.encodeRecordFields True Serialize.serializeConfig)
34 [d|instance Serialize a => Serialize (Rec a)|])
41 deriving (Eq, Show, Read)
43instance Arbitrary River where
44 arbitrary = elements [Ganga, Yamuna, Godavari]
46$(Serialize.deriveSerializeWith
47 (Serialize.encodeConstrNames True Serialize.serializeConfig)
48 [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