1{-# language DataKinds #-}
2{-# language TypeFamilies #-}
3{-# language StandaloneKindSignatures #-}
5module Rel8.Schema.Column
11import Data.Kind ( Type )
15import Rel8.Kind.Necessity ( Necessity( Required, Optional ) )
16import Rel8.Schema.Field ( Field )
17import qualified Rel8.Schema.Kind as K
20-- | The @Column@ type family should be used to indicate which fields of your
21-- data types are single columns in queries. This type family has special
22-- support when a query is executed, allowing you to use a single data type for
23-- both query data and rows decoded to Haskell.
24type Column :: K.Context -> Type -> Type
25type Column context a = Field context 'Required a
28type Default :: K.Context -> Type -> Type
29type Default context a = Field context 'Optional a
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