1{-# language DataKinds #-}
2{-# language StandaloneKindSignatures #-}
3{-# language TypeFamilies #-}
6 ( DBNum, DBIntegral, DBFractional
11import Data.Int ( Int16, Int32, Int64 )
12import Data.Kind ( Constraint, Type )
16import Rel8.Type ( DBType )
19import Data.Scientific ( Scientific )
22-- | The class of database types that support the @+@, @*@, @-@ operators, and
23-- the @abs@, @negate@, @sign@ functions.
24type DBNum :: Type -> Constraint
25class DBType a => DBNum a
31instance DBNum Scientific
34type DBIntegral :: Type -> Constraint
35class DBNum a => DBIntegral a
36instance DBIntegral Int16
37instance DBIntegral Int32
38instance DBIntegral Int64
41-- | The class of database types that support the @/@ operator.
42class DBNum a => DBFractional a
43instance DBFractional Float
44instance DBFractional Double
45instance DBFractional Scientific
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