1{-# language DataKinds #-}
2{-# language FlexibleContexts #-}
3{-# language FlexibleInstances #-}
4{-# language MultiParamTypeClasses #-}
5{-# language StandaloneKindSignatures #-}
6{-# language TypeFamilies #-}
7{-# language UndecidableInstances #-}
10 ( DBNum, DBIntegral, DBFractional, DBFloating
15import Data.Int ( Int16, Int32, Int64 )
16import Data.Kind ( Constraint, Type )
20import Rel8.Type ( DBType )
21import Rel8.Type.Ord ( DBOrd )
24import Data.Scientific ( Scientific )
27-- | The class of database types that support the @+@, @*@, @-@ operators, and
28-- the @abs@, @negate@, @sign@ functions.
29type DBNum :: Type -> Constraint
30class DBType a => DBNum a
36instance DBNum Scientific
39-- | The class of database types that can be coerced to from integral
40-- expressions. This is a Rel8 concept, and allows us to provide
42type DBIntegral :: Type -> Constraint
43class (DBNum a, DBOrd a) => DBIntegral a
44instance DBIntegral Int16
45instance DBIntegral Int32
46instance DBIntegral Int64
49-- | The class of database types that support the @/@ operator.
50type DBFractional :: Type -> Constraint
51class DBNum a => DBFractional a
52instance DBFractional Float
53instance DBFractional Double
54instance DBFractional Scientific
57-- | The class of database types that support the @/@ operator.
58type DBFloating :: Type -> Constraint
59class DBFractional a => DBFloating a
60instance DBFloating Float
61instance DBFloating Double
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