1{-# language DataKinds #-}
2{-# language DeriveAnyClass #-}
3{-# language DeriveGeneric #-}
4{-# language DerivingStrategies #-}
5{-# language DuplicateRecordFields #-}
7module Rel8.Schema.Generic.Test
8 ( module Rel8.Schema.Generic.Test
13import GHC.Generics ( Generic )
17import Rel8.Schema.Column
18import Rel8.Schema.Field
19import Rel8.Schema.Generic
22import Data.Text ( Text )
26 { foo :: Column f Bool
27 , bar :: Column f (Maybe Bool)
29 deriving stock Generic
30 deriving anyclass Rel8able
33data TablePair f = TablePair
34 { foo :: Column f (Default Bool)
35 , bars :: (Column f Text, Column f Text)
37 deriving stock Generic
38 deriving anyclass Rel8able
41data TableMaybe f = TableMaybe
42 { foo :: Column f [Maybe Bool]
43 , bars :: HMaybe f (TablePair f, TablePair f)
45 deriving stock Generic
46 deriving anyclass Rel8able
49data TableEither f = TableEither
50 { foo :: Column f Bool
51 , bars :: HEither f (HMaybe f (TablePair f, TablePair f)) (Column f Char)
53 deriving stock Generic
54 deriving anyclass Rel8able
57data TableThese f = TableThese
58 { foo :: Column f Bool
59 , bars :: HThese f (TableMaybe f) (TableEither f)
61 deriving stock Generic
62 deriving anyclass Rel8able
65data TableList f = TableList
66 { foo :: Column f Bool
67 , bars :: HList f (TableThese f)
69 deriving stock Generic
70 deriving anyclass Rel8able
73data TableNonEmpty f = TableNonEmpty
74 { foo :: Column f Bool
75 , bars :: HNonEmpty f (TableList f)
77 deriving stock Generic
78 deriving anyclass Rel8able
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