1{-# language DataKinds #-}
2{-# language StandaloneKindSignatures #-}
3{-# language TypeFamilyDependencies #-}
5module Rel8.Column.NonEmpty
11import Data.Kind ( Type )
12import Data.List.NonEmpty ( NonEmpty )
16import qualified Rel8.Schema.Kind as K
17import Rel8.Schema.Result ( Result )
18import Rel8.Table.NonEmpty ( NonEmptyTable )
21-- | Nest a 'NonEmpty' list within a 'Rel8able'. @HNonEmpty f a@ will produce a
22-- 'NonEmptyTable' @a@ in the 'Expr' context, and a 'NonEmpty' @a@ in the
24type HNonEmpty :: K.Context -> Type -> Type
25type family HNonEmpty context = nonEmpty | nonEmpty -> context where
26 HNonEmpty Result = NonEmpty
27 HNonEmpty context = NonEmptyTable context
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