1{-# language DataKinds #-}
2{-# language FlexibleContexts #-}
3{-# language FlexibleInstances #-}
4{-# language MultiParamTypeClasses #-}
5{-# language TypeFamilies #-}
6{-# language StandaloneKindSignatures #-}
7{-# language UndecidableInstances #-}
15import Data.Int ( Int16, Int32, Int64 )
16import Data.Kind ( Constraint, Type )
20import Rel8.Schema.Nullability ( HasNullability, Unnullify, Sql )
21import Rel8.Type ( DBType )
24import Data.Scientific ( Scientific )
27import Data.Time.LocalTime ( CalendarDiffTime )
30-- | The class of database types that support the @sum()@ aggregation function.
31type DBSum :: Type -> Constraint
32class DBType a => DBSum a
38instance DBSum Scientific
39instance DBSum CalendarDiffTime
42instance {-# INCOHERENT #-} (HasNullability a, DBSum (Unnullify 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