1{-# language DataKinds #-}
2{-# language FlexibleContexts #-}
4{-# language StandaloneKindSignatures #-}
6module Rel8.Kind.Algebra
7 ( Algebra( Product, Sum )
8 , SAlgebra( SProduct, SSum )
9 , KnownAlgebra( algebraSing )
14import Data.Kind ( Constraint, Type )
19data Algebra = Product | Sum
22type SAlgebra :: Algebra -> Type
23data SAlgebra algebra where
24 SProduct :: SAlgebra 'Product
28type KnownAlgebra :: Algebra -> Constraint
29class KnownAlgebra algebra where
30 algebraSing :: SAlgebra algebra
33instance KnownAlgebra 'Product where
34 algebraSing = SProduct
37instance KnownAlgebra 'Sum where
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