-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/

-- | A library of combinators for generating and executing SQL statements.
--   
--   This library allows you to build SQL SELECT, INSERT, UPDATE, and
--   DELETE statements using operations based on the relational algebra.
@package haskelldb
@version 2.2.4

module Database.HaskellDB.Version
version :: String

-- | Various functions used when pretty printing stuff
module Database.HaskellDB.DBSpec.PPHelpers
newline :: Doc
ppComment :: [[Char]] -> Doc
fileName :: [Char] -> [Char]
data MakeIdentifiers
MakeIdentifiers :: (String -> String) -> MakeIdentifiers
[moduleName, identifier, toType] :: MakeIdentifiers -> String -> String
mkIdentPreserving :: MakeIdentifiers
mkIdentCamelCase :: MakeIdentifiers
toLowerCamelCase :: [Char] -> [Char]
toUpperCamelCase :: [Char] -> [Char]

-- | Generalization of words and lines to any separating
--   character set.
split :: Eq a => (a -> Bool) -> [a] -> [[a]]
checkChars :: [Char] -> [Char]
checkKeyword :: [Char] -> [Char]
checkUpper :: [Char] -> [Char]
checkLower :: [Char] -> [Char]
checkUpperDef :: Char -> [Char] -> [Char]
checkLowerDef :: Char -> [Char] -> [Char]

-- | The main idea of bounded lists is to create lists with predetermined
--   maximum size.
--   
--   BoundedList is a simple, fast and type safe approach to implementing
--   this idea. The implementation is based on inductive instances, making
--   it very easy to expand with new bounds. A new bound only requires one
--   instance of size and two instances of Less.
--   
--   BoundedList works as follows. Every bound is build up by declaring a
--   data-type representing the new bound. The instance of size only
--   returns the size as an Int. The first instance of Less is for telling
--   the typechecker that this bound is greater than the largest smaller
--   bound. The second instance of Less is used by the typechecker to
--   construct a chain of instances if there is no hardcoded instance
--   available. This way the type checker can determine if a bound is
--   smaller/greater then any other bound.
--   
--   This inductive approach gives the complexity O(n) on the number of
--   instances and very short type checking times compared to an O(n^2)
--   implementation.
--   
--   BoundedList also comes with a few utility function for manipulation an
--   contructing bounded lists.
--   
--   To be noted: Since each bound is a unique type: Explicit shrink and/or
--   grow is needed before using (==). BoundedList does not have an
--   instance of Ordering. (This might change)
module Database.HaskellDB.BoundedList

-- | Shrinks the BoundedList supplied if it can do so without
--   truncating the list. Returns Nothing if the list inside was to long.
shrink :: (Size n, Size m) => BoundedList a n -> Maybe (BoundedList a m)

-- | Takes a BoundedList add grows it size.
grow :: LessEq n m => BoundedList a n -> BoundedList a m

-- | Takes a list and transforms it to a BoundedList. If the list
--   doesn'n fit, the list is truncated to make it fit into the bounded
--   list.
trunc :: Size n => [a] -> BoundedList a n

-- | Returns the length of a BoundedList.
listBound :: Size n => BoundedList a n -> Int

-- | Takes a list and transforms it to a BoundedList. If the list
--   doesn't fit, Nothing is returned.
toBounded :: Size n => [a] -> Maybe (BoundedList a n)

-- | Takes a BoundedList and return the list inside.
fromBounded :: Size n => BoundedList a n -> [a]
class Size n
data BoundedList a n
data N0
data N1
data N2
data N3
data N4
data N5
data N6
data N7
data N8
data N9
data N10
data N11
data N12
data N13
data N14
data N15
data N16
data N17
data N18
data N19
data N20
data N21
data N22
data N23
data N24
data N25
data N26
data N27
data N28
data N29
data N30
data N31
data N32
data N33
data N34
data N35
data N36
data N37
data N38
data N39
data N40
data N41
data N42
data N43
data N44
data N45
data N46
data N47
data N48
data N49
data N50
data N51
data N52
data N53
data N54
data N55
data N56
data N57
data N58
data N59
data N60
data N61
data N62
data N63
data N64
data N65
data N66
data N67
data N68
data N69
data N70
data N71
data N72
data N73
data N74
data N75
data N76
data N77
data N78
data N79
data N80
data N81
data N82
data N83
data N84
data N85
data N86
data N87
data N88
data N89
data N90
data N91
data N92
data N93
data N94
data N95
data N96
data N97
data N98
data N99
data N100
data N101
data N102
data N103
data N104
data N105
data N106
data N107
data N108
data N109
data N110
data N111
data N112
data N113
data N114
data N115
data N116
data N117
data N118
data N119
data N120
data N121
data N122
data N123
data N124
data N125
data N126
data N127
data N128
data N129
data N130
data N131
data N132
data N133
data N134
data N135
data N136
data N137
data N138
data N139
data N140
data N141
data N142
data N143
data N144
data N145
data N146
data N147
data N148
data N149
data N150
data N151
data N152
data N153
data N154
data N155
data N156
data N157
data N158
data N159
data N160
data N161
data N162
data N163
data N164
data N165
data N166
data N167
data N168
data N169
data N170
data N171
data N172
data N173
data N174
data N175
data N176
data N177
data N178
data N179
data N180
data N181
data N182
data N183
data N184
data N185
data N186
data N187
data N188
data N189
data N190
data N191
data N192
data N193
data N194
data N195
data N196
data N197
data N198
data N199
data N200
data N201
data N202
data N203
data N204
data N205
data N206
data N207
data N208
data N209
data N210
data N211
data N212
data N213
data N214
data N215
data N216
data N217
data N218
data N219
data N220
data N221
data N222
data N223
data N224
data N225
data N226
data N227
data N228
data N229
data N230
data N231
data N232
data N233
data N234
data N235
data N236
data N237
data N238
data N239
data N240
data N241
data N242
data N243
data N244
data N245
data N246
data N247
data N248
data N249
data N250
data N251
data N252
data N253
data N254
data N255
data N65535
instance Database.HaskellDB.BoundedList.Size a => Database.HaskellDB.BoundedList.LessEq a a
instance (Database.HaskellDB.BoundedList.Size a, Database.HaskellDB.BoundedList.Size b, Database.HaskellDB.BoundedList.Less a b) => Database.HaskellDB.BoundedList.LessEq a b
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N0
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N1
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N0 Database.HaskellDB.BoundedList.N1
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N2
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N1 Database.HaskellDB.BoundedList.N2
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N1 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N2
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N3
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N2 Database.HaskellDB.BoundedList.N3
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N2 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N3
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N4
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N3 Database.HaskellDB.BoundedList.N4
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N3 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N4
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N5
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N4 Database.HaskellDB.BoundedList.N5
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N4 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N5
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N6
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N5 Database.HaskellDB.BoundedList.N6
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N5 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N6
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N7
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N6 Database.HaskellDB.BoundedList.N7
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N6 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N7
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N8
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N7 Database.HaskellDB.BoundedList.N8
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N7 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N8
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N9
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N8 Database.HaskellDB.BoundedList.N9
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N8 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N9
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N10
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N9 Database.HaskellDB.BoundedList.N10
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N9 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N10
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N11
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N10 Database.HaskellDB.BoundedList.N11
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N10 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N11
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N12
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N11 Database.HaskellDB.BoundedList.N12
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N11 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N12
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N13
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N12 Database.HaskellDB.BoundedList.N13
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N12 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N13
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N14
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N13 Database.HaskellDB.BoundedList.N14
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N13 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N14
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N15
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N14 Database.HaskellDB.BoundedList.N15
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N14 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N15
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N16
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N15 Database.HaskellDB.BoundedList.N16
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N15 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N16
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N17
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N16 Database.HaskellDB.BoundedList.N17
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N16 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N17
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N18
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N17 Database.HaskellDB.BoundedList.N18
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N17 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N18
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N19
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N18 Database.HaskellDB.BoundedList.N19
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N18 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N19
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N20
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N19 Database.HaskellDB.BoundedList.N20
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N19 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N20
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N21
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N20 Database.HaskellDB.BoundedList.N21
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N20 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N21
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N22
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N21 Database.HaskellDB.BoundedList.N22
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N21 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N22
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N23
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N22 Database.HaskellDB.BoundedList.N23
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N22 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N23
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N24
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N23 Database.HaskellDB.BoundedList.N24
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N23 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N24
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N25
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N24 Database.HaskellDB.BoundedList.N25
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N24 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N25
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N26
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N25 Database.HaskellDB.BoundedList.N26
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N25 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N26
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N27
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N26 Database.HaskellDB.BoundedList.N27
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N26 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N27
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N28
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N27 Database.HaskellDB.BoundedList.N28
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N27 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N28
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N29
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N28 Database.HaskellDB.BoundedList.N29
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N28 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N29
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N30
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N29 Database.HaskellDB.BoundedList.N30
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N29 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N30
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N31
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N30 Database.HaskellDB.BoundedList.N31
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N30 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N31
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N32
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N31 Database.HaskellDB.BoundedList.N32
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N31 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N32
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N33
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N32 Database.HaskellDB.BoundedList.N33
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N32 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N33
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N34
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N33 Database.HaskellDB.BoundedList.N34
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N33 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N34
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N35
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N34 Database.HaskellDB.BoundedList.N35
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N34 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N35
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N36
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N35 Database.HaskellDB.BoundedList.N36
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N35 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N36
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N37
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N36 Database.HaskellDB.BoundedList.N37
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N36 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N37
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N38
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N37 Database.HaskellDB.BoundedList.N38
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N37 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N38
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N39
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N38 Database.HaskellDB.BoundedList.N39
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N38 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N39
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N40
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N39 Database.HaskellDB.BoundedList.N40
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N39 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N40
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N41
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N40 Database.HaskellDB.BoundedList.N41
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N40 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N41
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N42
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N41 Database.HaskellDB.BoundedList.N42
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N41 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N42
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N43
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N42 Database.HaskellDB.BoundedList.N43
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N42 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N43
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N44
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N43 Database.HaskellDB.BoundedList.N44
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N43 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N44
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N45
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N44 Database.HaskellDB.BoundedList.N45
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N44 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N45
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N46
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N45 Database.HaskellDB.BoundedList.N46
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N45 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N46
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N47
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N46 Database.HaskellDB.BoundedList.N47
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N46 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N47
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N48
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N47 Database.HaskellDB.BoundedList.N48
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N47 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N48
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N49
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N48 Database.HaskellDB.BoundedList.N49
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N48 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N49
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N50
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N49 Database.HaskellDB.BoundedList.N50
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N49 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N50
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N51
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N50 Database.HaskellDB.BoundedList.N51
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N50 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N51
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N52
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N51 Database.HaskellDB.BoundedList.N52
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N51 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N52
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N53
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N52 Database.HaskellDB.BoundedList.N53
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N52 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N53
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N54
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N53 Database.HaskellDB.BoundedList.N54
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N53 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N54
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N55
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N54 Database.HaskellDB.BoundedList.N55
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N54 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N55
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N56
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N55 Database.HaskellDB.BoundedList.N56
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N55 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N56
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N57
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N56 Database.HaskellDB.BoundedList.N57
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N56 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N57
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N58
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N57 Database.HaskellDB.BoundedList.N58
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N57 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N58
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N59
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N58 Database.HaskellDB.BoundedList.N59
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N58 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N59
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N60
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N59 Database.HaskellDB.BoundedList.N60
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N59 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N60
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N61
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N60 Database.HaskellDB.BoundedList.N61
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N60 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N61
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N62
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N61 Database.HaskellDB.BoundedList.N62
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N61 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N62
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N63
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N62 Database.HaskellDB.BoundedList.N63
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N62 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N63
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N64
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N63 Database.HaskellDB.BoundedList.N64
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N63 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N64
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N65
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N64 Database.HaskellDB.BoundedList.N65
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N64 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N65
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N66
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N65 Database.HaskellDB.BoundedList.N66
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N65 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N66
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N67
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N66 Database.HaskellDB.BoundedList.N67
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N66 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N67
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N68
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N67 Database.HaskellDB.BoundedList.N68
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N67 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N68
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N69
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N68 Database.HaskellDB.BoundedList.N69
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N68 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N69
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N70
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N69 Database.HaskellDB.BoundedList.N70
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N69 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N70
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N71
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N70 Database.HaskellDB.BoundedList.N71
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N70 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N71
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N72
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N71 Database.HaskellDB.BoundedList.N72
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N71 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N72
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N73
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N72 Database.HaskellDB.BoundedList.N73
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N72 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N73
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N74
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N73 Database.HaskellDB.BoundedList.N74
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N73 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N74
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N75
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N74 Database.HaskellDB.BoundedList.N75
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N74 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N75
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N76
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N75 Database.HaskellDB.BoundedList.N76
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N75 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N76
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N77
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N76 Database.HaskellDB.BoundedList.N77
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N76 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N77
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N78
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N77 Database.HaskellDB.BoundedList.N78
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N77 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N78
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N79
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N78 Database.HaskellDB.BoundedList.N79
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N78 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N79
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N80
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N79 Database.HaskellDB.BoundedList.N80
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N79 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N80
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N81
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N80 Database.HaskellDB.BoundedList.N81
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N80 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N81
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N82
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N81 Database.HaskellDB.BoundedList.N82
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N81 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N82
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N83
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N82 Database.HaskellDB.BoundedList.N83
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N82 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N83
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N84
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N83 Database.HaskellDB.BoundedList.N84
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N83 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N84
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N85
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N84 Database.HaskellDB.BoundedList.N85
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N84 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N85
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N86
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N85 Database.HaskellDB.BoundedList.N86
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N85 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N86
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N87
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N86 Database.HaskellDB.BoundedList.N87
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N86 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N87
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N88
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N87 Database.HaskellDB.BoundedList.N88
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N87 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N88
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N89
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N88 Database.HaskellDB.BoundedList.N89
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N88 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N89
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N90
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N89 Database.HaskellDB.BoundedList.N90
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N89 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N90
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N91
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N90 Database.HaskellDB.BoundedList.N91
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N90 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N91
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N92
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N91 Database.HaskellDB.BoundedList.N92
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N91 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N92
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N93
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N92 Database.HaskellDB.BoundedList.N93
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N92 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N93
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N94
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N93 Database.HaskellDB.BoundedList.N94
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N93 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N94
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N95
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N94 Database.HaskellDB.BoundedList.N95
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N94 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N95
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N96
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N95 Database.HaskellDB.BoundedList.N96
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N95 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N96
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N97
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N96 Database.HaskellDB.BoundedList.N97
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N96 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N97
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N98
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N97 Database.HaskellDB.BoundedList.N98
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N97 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N98
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N99
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N98 Database.HaskellDB.BoundedList.N99
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N98 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N99
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N100
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N99 Database.HaskellDB.BoundedList.N100
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N99 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N100
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N101
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N100 Database.HaskellDB.BoundedList.N101
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N100 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N101
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N102
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N101 Database.HaskellDB.BoundedList.N102
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N101 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N102
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N103
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N102 Database.HaskellDB.BoundedList.N103
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N102 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N103
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N104
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N103 Database.HaskellDB.BoundedList.N104
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N103 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N104
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N105
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N104 Database.HaskellDB.BoundedList.N105
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N104 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N105
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N106
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N105 Database.HaskellDB.BoundedList.N106
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N105 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N106
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N107
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N106 Database.HaskellDB.BoundedList.N107
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N106 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N107
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N108
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N107 Database.HaskellDB.BoundedList.N108
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N107 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N108
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N109
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N108 Database.HaskellDB.BoundedList.N109
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N108 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N109
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N110
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N109 Database.HaskellDB.BoundedList.N110
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N109 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N110
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N111
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N110 Database.HaskellDB.BoundedList.N111
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N110 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N111
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N112
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N111 Database.HaskellDB.BoundedList.N112
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N111 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N112
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N113
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N112 Database.HaskellDB.BoundedList.N113
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N112 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N113
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N114
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N113 Database.HaskellDB.BoundedList.N114
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N113 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N114
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N115
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N114 Database.HaskellDB.BoundedList.N115
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N114 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N115
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N116
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N115 Database.HaskellDB.BoundedList.N116
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N115 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N116
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N117
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N116 Database.HaskellDB.BoundedList.N117
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N116 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N117
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N118
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N117 Database.HaskellDB.BoundedList.N118
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N117 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N118
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N119
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N118 Database.HaskellDB.BoundedList.N119
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N118 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N119
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N120
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N119 Database.HaskellDB.BoundedList.N120
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N119 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N120
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N121
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N120 Database.HaskellDB.BoundedList.N121
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N120 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N121
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N122
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N121 Database.HaskellDB.BoundedList.N122
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N121 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N122
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N123
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N122 Database.HaskellDB.BoundedList.N123
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N122 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N123
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N124
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N123 Database.HaskellDB.BoundedList.N124
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N123 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N124
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N125
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N124 Database.HaskellDB.BoundedList.N125
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N124 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N125
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N126
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N125 Database.HaskellDB.BoundedList.N126
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N125 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N126
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N127
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N126 Database.HaskellDB.BoundedList.N127
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N126 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N127
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N128
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N127 Database.HaskellDB.BoundedList.N128
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N127 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N128
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N129
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N128 Database.HaskellDB.BoundedList.N129
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N128 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N129
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N130
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N129 Database.HaskellDB.BoundedList.N130
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N129 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N130
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N131
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N130 Database.HaskellDB.BoundedList.N131
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N130 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N131
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N132
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N131 Database.HaskellDB.BoundedList.N132
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N131 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N132
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N133
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N132 Database.HaskellDB.BoundedList.N133
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N132 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N133
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N134
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N133 Database.HaskellDB.BoundedList.N134
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N133 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N134
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N135
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N134 Database.HaskellDB.BoundedList.N135
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N134 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N135
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N136
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N135 Database.HaskellDB.BoundedList.N136
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N135 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N136
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N137
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N136 Database.HaskellDB.BoundedList.N137
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N136 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N137
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N138
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N137 Database.HaskellDB.BoundedList.N138
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N137 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N138
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N139
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N138 Database.HaskellDB.BoundedList.N139
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N138 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N139
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N140
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N139 Database.HaskellDB.BoundedList.N140
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N139 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N140
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N141
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N140 Database.HaskellDB.BoundedList.N141
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N140 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N141
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N142
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N141 Database.HaskellDB.BoundedList.N142
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N141 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N142
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N143
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N142 Database.HaskellDB.BoundedList.N143
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N142 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N143
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N144
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N143 Database.HaskellDB.BoundedList.N144
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N143 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N144
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N145
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N144 Database.HaskellDB.BoundedList.N145
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N144 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N145
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N146
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N145 Database.HaskellDB.BoundedList.N146
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N145 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N146
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N147
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N146 Database.HaskellDB.BoundedList.N147
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N146 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N147
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N148
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N147 Database.HaskellDB.BoundedList.N148
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N147 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N148
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N149
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N148 Database.HaskellDB.BoundedList.N149
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N148 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N149
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N150
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N149 Database.HaskellDB.BoundedList.N150
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N149 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N150
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N151
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N150 Database.HaskellDB.BoundedList.N151
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N150 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N151
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N152
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N151 Database.HaskellDB.BoundedList.N152
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N151 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N152
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N153
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N152 Database.HaskellDB.BoundedList.N153
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N152 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N153
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N154
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N153 Database.HaskellDB.BoundedList.N154
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N153 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N154
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N155
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N154 Database.HaskellDB.BoundedList.N155
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N154 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N155
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N156
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N155 Database.HaskellDB.BoundedList.N156
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N155 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N156
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N157
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N156 Database.HaskellDB.BoundedList.N157
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N156 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N157
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N158
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N157 Database.HaskellDB.BoundedList.N158
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N157 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N158
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N159
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N158 Database.HaskellDB.BoundedList.N159
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N158 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N159
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N160
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N159 Database.HaskellDB.BoundedList.N160
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N159 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N160
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N161
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N160 Database.HaskellDB.BoundedList.N161
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N160 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N161
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N162
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N161 Database.HaskellDB.BoundedList.N162
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N161 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N162
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N163
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N162 Database.HaskellDB.BoundedList.N163
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N162 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N163
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N164
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N163 Database.HaskellDB.BoundedList.N164
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N163 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N164
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N165
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N164 Database.HaskellDB.BoundedList.N165
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N164 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N165
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N166
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N165 Database.HaskellDB.BoundedList.N166
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N165 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N166
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N167
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N166 Database.HaskellDB.BoundedList.N167
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N166 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N167
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N168
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N167 Database.HaskellDB.BoundedList.N168
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N167 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N168
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N169
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N168 Database.HaskellDB.BoundedList.N169
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N168 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N169
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N170
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N169 Database.HaskellDB.BoundedList.N170
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N169 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N170
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N171
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N170 Database.HaskellDB.BoundedList.N171
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N170 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N171
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N172
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N171 Database.HaskellDB.BoundedList.N172
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N171 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N172
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N173
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N172 Database.HaskellDB.BoundedList.N173
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N172 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N173
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N174
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N173 Database.HaskellDB.BoundedList.N174
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N173 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N174
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N175
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N174 Database.HaskellDB.BoundedList.N175
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N174 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N175
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N176
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N175 Database.HaskellDB.BoundedList.N176
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N175 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N176
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N177
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N176 Database.HaskellDB.BoundedList.N177
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N176 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N177
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N178
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N177 Database.HaskellDB.BoundedList.N178
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N177 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N178
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N179
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N178 Database.HaskellDB.BoundedList.N179
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N178 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N179
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N180
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N179 Database.HaskellDB.BoundedList.N180
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N179 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N180
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N181
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N180 Database.HaskellDB.BoundedList.N181
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N180 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N181
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N182
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N181 Database.HaskellDB.BoundedList.N182
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N181 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N182
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N183
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N182 Database.HaskellDB.BoundedList.N183
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N182 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N183
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N184
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N183 Database.HaskellDB.BoundedList.N184
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N183 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N184
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N185
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N184 Database.HaskellDB.BoundedList.N185
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N184 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N185
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N186
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N185 Database.HaskellDB.BoundedList.N186
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N185 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N186
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N187
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N186 Database.HaskellDB.BoundedList.N187
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N186 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N187
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N188
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N187 Database.HaskellDB.BoundedList.N188
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N187 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N188
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N189
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N188 Database.HaskellDB.BoundedList.N189
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N188 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N189
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N190
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N189 Database.HaskellDB.BoundedList.N190
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N189 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N190
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N191
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N190 Database.HaskellDB.BoundedList.N191
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N190 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N191
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N192
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N191 Database.HaskellDB.BoundedList.N192
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N191 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N192
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N193
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N192 Database.HaskellDB.BoundedList.N193
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N192 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N193
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N194
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N193 Database.HaskellDB.BoundedList.N194
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N193 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N194
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N195
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N194 Database.HaskellDB.BoundedList.N195
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N194 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N195
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N196
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N195 Database.HaskellDB.BoundedList.N196
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N195 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N196
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N197
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N196 Database.HaskellDB.BoundedList.N197
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N196 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N197
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N198
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N197 Database.HaskellDB.BoundedList.N198
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N197 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N198
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N199
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N198 Database.HaskellDB.BoundedList.N199
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N198 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N199
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N200
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N199 Database.HaskellDB.BoundedList.N200
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N199 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N200
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N201
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N200 Database.HaskellDB.BoundedList.N201
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N200 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N201
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N202
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N201 Database.HaskellDB.BoundedList.N202
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N201 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N202
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N203
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N202 Database.HaskellDB.BoundedList.N203
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N202 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N203
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N204
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N203 Database.HaskellDB.BoundedList.N204
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N203 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N204
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N205
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N204 Database.HaskellDB.BoundedList.N205
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N204 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N205
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N206
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N205 Database.HaskellDB.BoundedList.N206
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N205 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N206
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N207
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N206 Database.HaskellDB.BoundedList.N207
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N206 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N207
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N208
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N207 Database.HaskellDB.BoundedList.N208
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N207 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N208
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N209
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N208 Database.HaskellDB.BoundedList.N209
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N208 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N209
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N210
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N209 Database.HaskellDB.BoundedList.N210
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N209 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N210
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N211
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N210 Database.HaskellDB.BoundedList.N211
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N210 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N211
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N212
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N211 Database.HaskellDB.BoundedList.N212
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N211 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N212
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N213
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N212 Database.HaskellDB.BoundedList.N213
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N212 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N213
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N214
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N213 Database.HaskellDB.BoundedList.N214
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N213 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N214
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N215
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N214 Database.HaskellDB.BoundedList.N215
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N214 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N215
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N216
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N215 Database.HaskellDB.BoundedList.N216
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N215 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N216
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N217
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N216 Database.HaskellDB.BoundedList.N217
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N216 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N217
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N218
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N217 Database.HaskellDB.BoundedList.N218
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N217 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N218
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N219
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N218 Database.HaskellDB.BoundedList.N219
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N218 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N219
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N220
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N219 Database.HaskellDB.BoundedList.N220
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N219 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N220
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N221
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N220 Database.HaskellDB.BoundedList.N221
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N220 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N221
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N222
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N221 Database.HaskellDB.BoundedList.N222
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N221 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N222
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N223
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N222 Database.HaskellDB.BoundedList.N223
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N222 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N223
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N224
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N223 Database.HaskellDB.BoundedList.N224
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N223 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N224
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N225
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N224 Database.HaskellDB.BoundedList.N225
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N224 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N225
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N226
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N225 Database.HaskellDB.BoundedList.N226
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N225 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N226
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N227
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N226 Database.HaskellDB.BoundedList.N227
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N226 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N227
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N228
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N227 Database.HaskellDB.BoundedList.N228
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N227 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N228
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N229
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N228 Database.HaskellDB.BoundedList.N229
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N228 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N229
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N230
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N229 Database.HaskellDB.BoundedList.N230
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N229 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N230
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N231
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N230 Database.HaskellDB.BoundedList.N231
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N230 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N231
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N232
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N231 Database.HaskellDB.BoundedList.N232
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N231 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N232
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N233
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N232 Database.HaskellDB.BoundedList.N233
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N232 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N233
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N234
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N233 Database.HaskellDB.BoundedList.N234
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N233 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N234
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N235
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N234 Database.HaskellDB.BoundedList.N235
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N234 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N235
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N236
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N235 Database.HaskellDB.BoundedList.N236
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N235 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N236
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N237
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N236 Database.HaskellDB.BoundedList.N237
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N236 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N237
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N238
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N237 Database.HaskellDB.BoundedList.N238
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N237 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N238
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N239
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N238 Database.HaskellDB.BoundedList.N239
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N238 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N239
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N240
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N239 Database.HaskellDB.BoundedList.N240
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N239 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N240
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N241
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N240 Database.HaskellDB.BoundedList.N241
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N240 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N241
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N242
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N241 Database.HaskellDB.BoundedList.N242
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N241 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N242
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N243
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N242 Database.HaskellDB.BoundedList.N243
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N242 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N243
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N244
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N243 Database.HaskellDB.BoundedList.N244
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N243 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N244
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N245
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N244 Database.HaskellDB.BoundedList.N245
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N244 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N245
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N246
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N245 Database.HaskellDB.BoundedList.N246
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N245 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N246
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N247
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N246 Database.HaskellDB.BoundedList.N247
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N246 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N247
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N248
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N247 Database.HaskellDB.BoundedList.N248
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N247 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N248
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N249
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N248 Database.HaskellDB.BoundedList.N249
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N248 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N249
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N250
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N249 Database.HaskellDB.BoundedList.N250
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N249 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N250
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N251
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N250 Database.HaskellDB.BoundedList.N251
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N250 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N251
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N252
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N251 Database.HaskellDB.BoundedList.N252
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N251 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N252
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N253
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N252 Database.HaskellDB.BoundedList.N253
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N252 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N253
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N254
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N253 Database.HaskellDB.BoundedList.N254
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N253 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N254
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N255
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N254 Database.HaskellDB.BoundedList.N255
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N254 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N255
instance Database.HaskellDB.BoundedList.Size Database.HaskellDB.BoundedList.N65535
instance Database.HaskellDB.BoundedList.Less Database.HaskellDB.BoundedList.N255 Database.HaskellDB.BoundedList.N65535
instance Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N255 => Database.HaskellDB.BoundedList.Less a Database.HaskellDB.BoundedList.N65535
instance (GHC.Show.Show a, Database.HaskellDB.BoundedList.Size n) => GHC.Show.Show (Database.HaskellDB.BoundedList.BoundedList a n)
instance (Database.HaskellDB.BoundedList.Size n, GHC.Classes.Eq a) => GHC.Classes.Eq (Database.HaskellDB.BoundedList.BoundedList a n)

-- | BoundedString represents the sql types; CHARACTER and CHARACTER
--   VARYING both defined in SQL 1992. BoundedString supports sizes in the
--   range [0,255] and 65535. Greater sizes and the sql type SQL_TEXT (SQL
--   1992) will might be supported in the future.
--   
--   The use of BoundedString together with HaskellDB enables feedback when
--   the length of a string exceeds the bound of a certain database field.
--   BoundedString also provides a layer of type safety against loss of
--   data due to sql string truncation when extracting and re-insert data
--   into fields with smaller bound.
module Database.HaskellDB.BoundedString
type BoundedString n = BoundedList Char n
type BStr0 = BoundedString N0
type BStr1 = BoundedString N1
type BStr2 = BoundedString N2
type BStr3 = BoundedString N3
type BStr4 = BoundedString N4
type BStr5 = BoundedString N5
type BStr6 = BoundedString N6
type BStr7 = BoundedString N7
type BStr8 = BoundedString N8
type BStr9 = BoundedString N9
type BStr10 = BoundedString N10
type BStr11 = BoundedString N11
type BStr12 = BoundedString N12
type BStr13 = BoundedString N13
type BStr14 = BoundedString N14
type BStr15 = BoundedString N15
type BStr16 = BoundedString N16
type BStr17 = BoundedString N17
type BStr18 = BoundedString N18
type BStr19 = BoundedString N19
type BStr20 = BoundedString N20
type BStr21 = BoundedString N21
type BStr22 = BoundedString N22
type BStr23 = BoundedString N23
type BStr24 = BoundedString N24
type BStr25 = BoundedString N25
type BStr26 = BoundedString N26
type BStr27 = BoundedString N27
type BStr28 = BoundedString N28
type BStr29 = BoundedString N29
type BStr30 = BoundedString N30
type BStr31 = BoundedString N31
type BStr32 = BoundedString N32
type BStr33 = BoundedString N33
type BStr34 = BoundedString N34
type BStr35 = BoundedString N35
type BStr36 = BoundedString N36
type BStr37 = BoundedString N37
type BStr38 = BoundedString N38
type BStr39 = BoundedString N39
type BStr40 = BoundedString N40
type BStr41 = BoundedString N41
type BStr42 = BoundedString N42
type BStr43 = BoundedString N43
type BStr44 = BoundedString N44
type BStr45 = BoundedString N45
type BStr46 = BoundedString N46
type BStr47 = BoundedString N47
type BStr48 = BoundedString N48
type BStr49 = BoundedString N49
type BStr50 = BoundedString N50
type BStr51 = BoundedString N51
type BStr52 = BoundedString N52
type BStr53 = BoundedString N53
type BStr54 = BoundedString N54
type BStr55 = BoundedString N55
type BStr56 = BoundedString N56
type BStr57 = BoundedString N57
type BStr58 = BoundedString N58
type BStr59 = BoundedString N59
type BStr60 = BoundedString N60
type BStr61 = BoundedString N61
type BStr62 = BoundedString N62
type BStr63 = BoundedString N63
type BStr64 = BoundedString N64
type BStr65 = BoundedString N65
type BStr66 = BoundedString N66
type BStr67 = BoundedString N67
type BStr68 = BoundedString N68
type BStr69 = BoundedString N69
type BStr70 = BoundedString N70
type BStr71 = BoundedString N71
type BStr72 = BoundedString N72
type BStr73 = BoundedString N73
type BStr74 = BoundedString N74
type BStr75 = BoundedString N75
type BStr76 = BoundedString N76
type BStr77 = BoundedString N77
type BStr78 = BoundedString N78
type BStr79 = BoundedString N79
type BStr80 = BoundedString N80
type BStr81 = BoundedString N81
type BStr82 = BoundedString N82
type BStr83 = BoundedString N83
type BStr84 = BoundedString N84
type BStr85 = BoundedString N85
type BStr86 = BoundedString N86
type BStr87 = BoundedString N87
type BStr88 = BoundedString N88
type BStr89 = BoundedString N89
type BStr90 = BoundedString N90
type BStr91 = BoundedString N91
type BStr92 = BoundedString N92
type BStr93 = BoundedString N93
type BStr94 = BoundedString N94
type BStr95 = BoundedString N95
type BStr96 = BoundedString N96
type BStr97 = BoundedString N97
type BStr98 = BoundedString N98
type BStr99 = BoundedString N99
type BStr100 = BoundedString N100
type BStr101 = BoundedString N101
type BStr102 = BoundedString N102
type BStr103 = BoundedString N103
type BStr104 = BoundedString N104
type BStr105 = BoundedString N105
type BStr106 = BoundedString N106
type BStr107 = BoundedString N107
type BStr108 = BoundedString N108
type BStr109 = BoundedString N109
type BStr110 = BoundedString N110
type BStr111 = BoundedString N111
type BStr112 = BoundedString N112
type BStr113 = BoundedString N113
type BStr114 = BoundedString N114
type BStr115 = BoundedString N115
type BStr116 = BoundedString N116
type BStr117 = BoundedString N117
type BStr118 = BoundedString N118
type BStr119 = BoundedString N119
type BStr120 = BoundedString N120
type BStr121 = BoundedString N121
type BStr122 = BoundedString N122
type BStr123 = BoundedString N123
type BStr124 = BoundedString N124
type BStr125 = BoundedString N125
type BStr126 = BoundedString N126
type BStr127 = BoundedString N127
type BStr128 = BoundedString N128
type BStr129 = BoundedString N129
type BStr130 = BoundedString N130
type BStr131 = BoundedString N131
type BStr132 = BoundedString N132
type BStr133 = BoundedString N133
type BStr134 = BoundedString N134
type BStr135 = BoundedString N135
type BStr136 = BoundedString N136
type BStr137 = BoundedString N137
type BStr138 = BoundedString N138
type BStr139 = BoundedString N139
type BStr140 = BoundedString N140
type BStr141 = BoundedString N141
type BStr142 = BoundedString N142
type BStr143 = BoundedString N143
type BStr144 = BoundedString N144
type BStr145 = BoundedString N145
type BStr146 = BoundedString N146
type BStr147 = BoundedString N147
type BStr148 = BoundedString N148
type BStr149 = BoundedString N149
type BStr150 = BoundedString N150
type BStr151 = BoundedString N151
type BStr152 = BoundedString N152
type BStr153 = BoundedString N153
type BStr154 = BoundedString N154
type BStr155 = BoundedString N155
type BStr156 = BoundedString N156
type BStr157 = BoundedString N157
type BStr158 = BoundedString N158
type BStr159 = BoundedString N159
type BStr160 = BoundedString N160
type BStr161 = BoundedString N161
type BStr162 = BoundedString N162
type BStr163 = BoundedString N163
type BStr164 = BoundedString N164
type BStr165 = BoundedString N165
type BStr166 = BoundedString N166
type BStr167 = BoundedString N167
type BStr168 = BoundedString N168
type BStr169 = BoundedString N169
type BStr170 = BoundedString N170
type BStr171 = BoundedString N171
type BStr172 = BoundedString N172
type BStr173 = BoundedString N173
type BStr174 = BoundedString N174
type BStr175 = BoundedString N175
type BStr176 = BoundedString N176
type BStr177 = BoundedString N177
type BStr178 = BoundedString N178
type BStr179 = BoundedString N179
type BStr180 = BoundedString N180
type BStr181 = BoundedString N181
type BStr182 = BoundedString N182
type BStr183 = BoundedString N183
type BStr184 = BoundedString N184
type BStr185 = BoundedString N185
type BStr186 = BoundedString N186
type BStr187 = BoundedString N187
type BStr188 = BoundedString N188
type BStr189 = BoundedString N189
type BStr190 = BoundedString N190
type BStr191 = BoundedString N191
type BStr192 = BoundedString N192
type BStr193 = BoundedString N193
type BStr194 = BoundedString N194
type BStr195 = BoundedString N195
type BStr196 = BoundedString N196
type BStr197 = BoundedString N197
type BStr198 = BoundedString N198
type BStr199 = BoundedString N199
type BStr200 = BoundedString N200
type BStr201 = BoundedString N201
type BStr202 = BoundedString N202
type BStr203 = BoundedString N203
type BStr204 = BoundedString N204
type BStr205 = BoundedString N205
type BStr206 = BoundedString N206
type BStr207 = BoundedString N207
type BStr208 = BoundedString N208
type BStr209 = BoundedString N209
type BStr210 = BoundedString N210
type BStr211 = BoundedString N211
type BStr212 = BoundedString N212
type BStr213 = BoundedString N213
type BStr214 = BoundedString N214
type BStr215 = BoundedString N215
type BStr216 = BoundedString N216
type BStr217 = BoundedString N217
type BStr218 = BoundedString N218
type BStr219 = BoundedString N219
type BStr220 = BoundedString N220
type BStr221 = BoundedString N221
type BStr222 = BoundedString N222
type BStr223 = BoundedString N223
type BStr224 = BoundedString N224
type BStr225 = BoundedString N225
type BStr226 = BoundedString N226
type BStr227 = BoundedString N227
type BStr228 = BoundedString N228
type BStr229 = BoundedString N229
type BStr230 = BoundedString N230
type BStr231 = BoundedString N231
type BStr232 = BoundedString N232
type BStr233 = BoundedString N233
type BStr234 = BoundedString N234
type BStr235 = BoundedString N235
type BStr236 = BoundedString N236
type BStr237 = BoundedString N237
type BStr238 = BoundedString N238
type BStr239 = BoundedString N239
type BStr240 = BoundedString N240
type BStr241 = BoundedString N241
type BStr242 = BoundedString N242
type BStr243 = BoundedString N243
type BStr244 = BoundedString N244
type BStr245 = BoundedString N245
type BStr246 = BoundedString N246
type BStr247 = BoundedString N247
type BStr248 = BoundedString N248
type BStr249 = BoundedString N249
type BStr250 = BoundedString N250
type BStr251 = BoundedString N251
type BStr252 = BoundedString N252
type BStr253 = BoundedString N253
type BStr254 = BoundedString N254
type BStr255 = BoundedString N255
type BStr65535 = BoundedString N65535

-- | A data type for SQL.
module Database.HaskellDB.Sql
type SqlTable = String
type SqlColumn = String

-- | A valid SQL name for a parameter.
type SqlName = String
data SqlOrder
SqlAsc :: SqlOrder
SqlDesc :: SqlOrder
data SqlType
SqlType :: String -> SqlType
SqlType1 :: String -> Int -> SqlType
SqlType2 :: String -> Int -> Int -> SqlType

-- | Data type for SQL SELECT statements.
data SqlSelect
SqlSelect :: [String] -> [(SqlColumn, SqlExpr)] -> [(SqlTable, SqlSelect)] -> [SqlExpr] -> Maybe Mark -> [(SqlExpr, SqlOrder)] -> [String] -> SqlSelect

-- | DISTINCT, ALL etc.
[options] :: SqlSelect -> [String]

-- | result
[attrs] :: SqlSelect -> [(SqlColumn, SqlExpr)]

-- | FROM
[tables] :: SqlSelect -> [(SqlTable, SqlSelect)]

-- | WHERE
[criteria] :: SqlSelect -> [SqlExpr]

-- | GROUP BY
[groupby] :: SqlSelect -> Maybe Mark

-- | ORDER BY
[orderby] :: SqlSelect -> [(SqlExpr, SqlOrder)]

-- | TOP n, etc.
[extra] :: SqlSelect -> [String]

-- | Binary relational operator
SqlBin :: String -> SqlSelect -> SqlSelect -> SqlSelect

-- | Select a whole table.
SqlTable :: SqlTable -> SqlSelect

-- | Empty select.
SqlEmpty :: SqlSelect

-- | Data type for SQL UPDATE statements.
data SqlUpdate
SqlUpdate :: SqlTable -> [(SqlColumn, SqlExpr)] -> [SqlExpr] -> SqlUpdate

-- | Data type for SQL DELETE statements.
data SqlDelete
SqlDelete :: SqlTable -> [SqlExpr] -> SqlDelete

-- | Data type for SQL INSERT statements.
data SqlInsert
SqlInsert :: SqlTable -> [SqlColumn] -> [SqlExpr] -> SqlInsert
SqlInsertQuery :: SqlTable -> [SqlColumn] -> SqlSelect -> SqlInsert

-- | Data type for SQL CREATE statements.
data SqlCreate

-- | Create a database
SqlCreateDB :: String -> SqlCreate

-- | Create a table.
SqlCreateTable :: SqlTable -> [(SqlColumn, (SqlType, Bool))] -> SqlCreate

-- | Data type representing the SQL DROP statement.
data SqlDrop

-- | Delete a database
SqlDropDB :: String -> SqlDrop

-- | Delete a table named SqlTable
SqlDropTable :: SqlTable -> SqlDrop

-- | Expressions in SQL statements.
data SqlExpr
ColumnSqlExpr :: SqlColumn -> SqlExpr
BinSqlExpr :: String -> SqlExpr -> SqlExpr -> SqlExpr
PrefixSqlExpr :: String -> SqlExpr -> SqlExpr
PostfixSqlExpr :: String -> SqlExpr -> SqlExpr
FunSqlExpr :: String -> [SqlExpr] -> SqlExpr

-- | Aggregate functions separate from normal functions.
AggrFunSqlExpr :: String -> [SqlExpr] -> SqlExpr
ConstSqlExpr :: String -> SqlExpr
CaseSqlExpr :: [(SqlExpr, SqlExpr)] -> SqlExpr -> SqlExpr
ListSqlExpr :: [SqlExpr] -> SqlExpr
ExistsSqlExpr :: SqlSelect -> SqlExpr
ParamSqlExpr :: (Maybe SqlName) -> SqlExpr -> SqlExpr
PlaceHolderSqlExpr :: SqlExpr
ParensSqlExpr :: SqlExpr -> SqlExpr
CastSqlExpr :: String -> SqlExpr -> SqlExpr
data Mark
All :: Mark
Columns :: [(SqlColumn, SqlExpr)] -> Mark
newSelect :: SqlSelect

-- | Transform a SqlExpr value.
foldSqlExpr :: (SqlColumn -> t, String -> t -> t -> t, String -> t -> t, String -> t -> t, String -> [t] -> t, String -> [t] -> t, String -> t, [(t, t)] -> t -> t, [t] -> t, SqlSelect -> t, (Maybe SqlName) -> t -> t, t, t -> t, String -> t -> t) -> SqlExpr -> t

-- | Transform a SqlSelect value.
foldSqlSelect :: ([String] -> [(SqlColumn, SqlExpr)] -> [(SqlTable, t)] -> [SqlExpr] -> Maybe Mark -> [(SqlExpr, SqlOrder)] -> [String] -> t, String -> t -> t -> t, SqlTable -> t, t) -> SqlSelect -> t
instance GHC.Show.Show Database.HaskellDB.Sql.Mark
instance GHC.Show.Show Database.HaskellDB.Sql.SqlSelect
instance GHC.Show.Show Database.HaskellDB.Sql.SqlExpr
instance GHC.Show.Show Database.HaskellDB.Sql.SqlType
instance GHC.Show.Show Database.HaskellDB.Sql.SqlOrder

-- | Pretty-print SQL
module Database.HaskellDB.Sql.Print

-- | Pretty prints a SqlSelect
ppSql :: SqlSelect -> Doc

-- | Pretty prints a SqlUpdate
ppUpdate :: SqlUpdate -> Doc

-- | Pretty prints a SqlDelete
ppDelete :: SqlDelete -> Doc
ppInsert :: SqlInsert -> Doc

-- | Pretty prints a SqlCreate.
ppCreate :: SqlCreate -> Doc

-- | Pretty prints a SqlDrop.
ppDrop :: SqlDrop -> Doc

-- | Pretty prints a SqlExpr
ppSqlExpr :: SqlExpr -> Doc

-- | PrimQuery defines the datatype of relational expressions
--   (PrimQuery) and some useful functions on PrimQuery's
module Database.HaskellDB.PrimQuery
type TableName = String
type Attribute = String
type Scheme = [Attribute]
type Assoc = [(Attribute, PrimExpr)]
type Name = String
data PrimQuery
BaseTable :: TableName -> Scheme -> PrimQuery
Project :: Assoc -> PrimQuery -> PrimQuery
Restrict :: PrimExpr -> PrimQuery -> PrimQuery
Group :: Assoc -> PrimQuery -> PrimQuery
Binary :: RelOp -> PrimQuery -> PrimQuery -> PrimQuery
Special :: SpecialOp -> PrimQuery -> PrimQuery
Empty :: PrimQuery
data RelOp
Times :: RelOp
Union :: RelOp
UnionAll :: RelOp
Intersect :: RelOp
Divide :: RelOp
Difference :: RelOp
data SpecialOp
Order :: [OrderExpr] -> SpecialOp
Top :: Int -> SpecialOp
Offset :: Int -> SpecialOp
data PrimExpr
AttrExpr :: Attribute -> PrimExpr
BinExpr :: BinOp -> PrimExpr -> PrimExpr -> PrimExpr
UnExpr :: UnOp -> PrimExpr -> PrimExpr
AggrExpr :: AggrOp -> PrimExpr -> PrimExpr
ConstExpr :: Literal -> PrimExpr
CaseExpr :: [(PrimExpr, PrimExpr)] -> PrimExpr -> PrimExpr
ListExpr :: [PrimExpr] -> PrimExpr
ParamExpr :: (Maybe Name) -> PrimExpr -> PrimExpr
FunExpr :: Name -> [PrimExpr] -> PrimExpr

-- | Cast an expression to a given type.
CastExpr :: Name -> PrimExpr -> PrimExpr
data OrderExpr
OrderExpr :: OrderOp -> PrimExpr -> OrderExpr
data BinOp
OpEq :: BinOp
OpLt :: BinOp
OpLtEq :: BinOp
OpGt :: BinOp
OpGtEq :: BinOp
OpNotEq :: BinOp
OpAnd :: BinOp
OpOr :: BinOp
OpLike :: BinOp
OpIn :: BinOp
OpOther :: String -> BinOp
OpCat :: BinOp
OpPlus :: BinOp
OpMinus :: BinOp
OpMul :: BinOp
OpDiv :: BinOp
OpMod :: BinOp
OpBitNot :: BinOp
OpBitAnd :: BinOp
OpBitOr :: BinOp
OpBitXor :: BinOp
OpAsg :: BinOp
data UnOp
OpNot :: UnOp
OpIsNull :: UnOp
OpIsNotNull :: UnOp
OpLength :: UnOp
UnOpOther :: String -> UnOp
data OrderOp
OpAsc :: OrderOp
OpDesc :: OrderOp
data AggrOp
AggrCount :: AggrOp
AggrSum :: AggrOp
AggrAvg :: AggrOp
AggrMin :: AggrOp
AggrMax :: AggrOp
AggrStdDev :: AggrOp
AggrStdDevP :: AggrOp
AggrVar :: AggrOp
AggrVarP :: AggrOp
AggrOther :: String -> AggrOp
data Literal
NullLit :: Literal

-- | represents a default value
DefaultLit :: Literal
BoolLit :: Bool -> Literal
StringLit :: String -> Literal
IntegerLit :: Integer -> Literal
DoubleLit :: Double -> Literal
DateLit :: CalendarTime -> Literal

-- | used for hacking in custom SQL
OtherLit :: String -> Literal

-- | Creates a projection of some attributes while keeping all other
--   attributes in the relation visible too.
extend :: Assoc -> PrimQuery -> PrimQuery

-- | Takes the cartesian product of two queries.
times :: PrimQuery -> PrimQuery -> PrimQuery

-- | Returns the schema (the attributes) of a query
attributes :: PrimQuery -> Scheme

-- | Returns all attributes in an expression.
attrInExpr :: PrimExpr -> Scheme

-- | Returns all attributes in a list of ordering expressions.
attrInOrder :: [OrderExpr] -> Scheme

-- | Substitute attribute names in an expression.
substAttr :: Assoc -> PrimExpr -> PrimExpr
isAggregate :: PrimExpr -> Bool

-- | Determines if a primitive expression represents a constant or is an
--   expression only involving constants.
isConstant :: PrimExpr -> Bool

-- | Fold on PrimQuery
foldPrimQuery :: (t, TableName -> Scheme -> t, Assoc -> t -> t, PrimExpr -> t -> t, RelOp -> t -> t -> t, Assoc -> t -> t, SpecialOp -> t -> t) -> PrimQuery -> t

-- | Fold on PrimExpr
foldPrimExpr :: (Attribute -> t, Literal -> t, BinOp -> t -> t -> t, UnOp -> t -> t, AggrOp -> t -> t, [(t, t)] -> t -> t, [t] -> t, Maybe Name -> t -> t, Name -> [t] -> t, Name -> t -> t) -> PrimExpr -> t
instance GHC.Show.Show Database.HaskellDB.PrimQuery.PrimQuery
instance GHC.Show.Show Database.HaskellDB.PrimQuery.SpecialOp
instance GHC.Show.Show Database.HaskellDB.PrimQuery.OrderExpr
instance GHC.Show.Show Database.HaskellDB.PrimQuery.PrimExpr
instance GHC.Read.Read Database.HaskellDB.PrimQuery.PrimExpr
instance GHC.Read.Read Database.HaskellDB.PrimQuery.AggrOp
instance GHC.Show.Show Database.HaskellDB.PrimQuery.AggrOp
instance GHC.Read.Read Database.HaskellDB.PrimQuery.UnOp
instance GHC.Show.Show Database.HaskellDB.PrimQuery.UnOp
instance GHC.Read.Read Database.HaskellDB.PrimQuery.BinOp
instance GHC.Show.Show Database.HaskellDB.PrimQuery.BinOp
instance GHC.Show.Show Database.HaskellDB.PrimQuery.Literal
instance GHC.Read.Read Database.HaskellDB.PrimQuery.Literal
instance GHC.Show.Show Database.HaskellDB.PrimQuery.OrderOp
instance GHC.Show.Show Database.HaskellDB.PrimQuery.RelOp

-- | Defines standard optimizations performed on PrimQuery's (relational
--   expressions).
module Database.HaskellDB.Optimize

-- | Optimize a PrimQuery
optimize :: PrimQuery -> PrimQuery

-- | Optimize a set of criteria.
optimizeCriteria :: [PrimExpr] -> [PrimExpr]

-- | This is a replacement for some of TREX.
module Database.HaskellDB.HDBRec

-- | The empty record.
data RecNil
RecNil :: RecNil

-- | Constructor that adds a field to a record. f is the field tag, a is
--   the field value and b is the rest of the record.
data RecCons f a b
RecCons :: a -> b -> RecCons f a b

-- | The type used for records. This is a function that takes a
--   RecNil so that the user does not have to put a RecNil at
--   the end of every record.
type Record r = RecNil -> r

-- | The empty record
emptyRecord :: Record RecNil

-- | Creates one-field record from a label and a value
(.=.) :: l f a -> a -> Record (RecCons f a RecNil)

-- | Adds the field from a one-field record to another record.
(#) :: Record (RecCons f a RecNil) -> (b -> c) -> (b -> RecCons f a c)

-- | Class for field labels.
class FieldTag f

-- | Gets the name of the label.
fieldName :: FieldTag f => f -> String

-- | The record r has the field f if there is an instance
--   of HasField f r.
class HasField f r
class Select f r a | f r -> a

-- | Field selection operator. It is overloaded so that users (read
--   HaskellDB) can redefine it for things with phantom record types.
(!) :: Select f r a => r -> f -> a
class SetField f r a
setField :: SetField f r a => l f a -> a -> r -> r
class RecCat r1 r2 r3 | r1 r2 -> r3

-- | Concatenates two records.
recCat :: RecCat r1 r2 r3 => r1 -> r2 -> r3
class ShowLabels r
recordLabels :: ShowLabels r => r -> [String]

-- | Convert a record to a list of label names and field values.
class ShowRecRow r
showRecRow :: ShowRecRow r => r -> [(String, ShowS)]
class ReadRecRow r

-- | Convert a list of labels and strins representating values to a record.
readRecRow :: ReadRecRow r => [(String, String)] -> [(r, [(String, String)])]
instance (GHC.Classes.Ord a, GHC.Classes.Ord b) => GHC.Classes.Ord (Database.HaskellDB.HDBRec.RecCons f a b)
instance (GHC.Classes.Eq a, GHC.Classes.Eq b) => GHC.Classes.Eq (Database.HaskellDB.HDBRec.RecCons f a b)
instance GHC.Classes.Ord Database.HaskellDB.HDBRec.RecNil
instance GHC.Classes.Eq Database.HaskellDB.HDBRec.RecNil
instance Database.HaskellDB.HDBRec.HasField f (Database.HaskellDB.HDBRec.RecCons f a r)
instance Database.HaskellDB.HDBRec.HasField f r => Database.HaskellDB.HDBRec.HasField f (Database.HaskellDB.HDBRec.RecCons g a r)
instance Database.HaskellDB.HDBRec.HasField f r => Database.HaskellDB.HDBRec.HasField f (Database.HaskellDB.HDBRec.Record r)
instance Database.HaskellDB.HDBRec.RecCat Database.HaskellDB.HDBRec.RecNil r r
instance Database.HaskellDB.HDBRec.RecCat r1 r2 r3 => Database.HaskellDB.HDBRec.RecCat (Database.HaskellDB.HDBRec.RecCons f a r1) r2 (Database.HaskellDB.HDBRec.RecCons f a r3)
instance Database.HaskellDB.HDBRec.RecCat r1 r2 r3 => Database.HaskellDB.HDBRec.RecCat (Database.HaskellDB.HDBRec.Record r1) (Database.HaskellDB.HDBRec.Record r2) (Database.HaskellDB.HDBRec.Record r3)
instance Database.HaskellDB.HDBRec.SelectField f r a => Database.HaskellDB.HDBRec.Select (l f a) (Database.HaskellDB.HDBRec.Record r) a
instance Database.HaskellDB.HDBRec.SelectField f (Database.HaskellDB.HDBRec.RecCons f a r) a
instance Database.HaskellDB.HDBRec.SelectField f r a => Database.HaskellDB.HDBRec.SelectField f (Database.HaskellDB.HDBRec.RecCons g b r) a
instance Database.HaskellDB.HDBRec.SelectField f r a => Database.HaskellDB.HDBRec.SelectField f (Database.HaskellDB.HDBRec.Record r) a
instance Database.HaskellDB.HDBRec.SetField f (Database.HaskellDB.HDBRec.RecCons f a r) a
instance Database.HaskellDB.HDBRec.SetField f r a => Database.HaskellDB.HDBRec.SetField f (Database.HaskellDB.HDBRec.RecCons g b r) a
instance Database.HaskellDB.HDBRec.SetField f r a => Database.HaskellDB.HDBRec.SetField f (Database.HaskellDB.HDBRec.Record r) a
instance GHC.Classes.Eq r => GHC.Classes.Eq (Database.HaskellDB.HDBRec.Record r)
instance GHC.Classes.Ord r => GHC.Classes.Ord (Database.HaskellDB.HDBRec.Record r)
instance Database.HaskellDB.HDBRec.ShowLabels Database.HaskellDB.HDBRec.RecNil
instance (Database.HaskellDB.HDBRec.FieldTag f, Database.HaskellDB.HDBRec.ShowLabels r) => Database.HaskellDB.HDBRec.ShowLabels (Database.HaskellDB.HDBRec.RecCons f a r)
instance Database.HaskellDB.HDBRec.ShowLabels r => Database.HaskellDB.HDBRec.ShowLabels (Database.HaskellDB.HDBRec.Record r)
instance Database.HaskellDB.HDBRec.ShowRecRow Database.HaskellDB.HDBRec.RecNil
instance (Database.HaskellDB.HDBRec.FieldTag a, GHC.Show.Show b, Database.HaskellDB.HDBRec.ShowRecRow c) => Database.HaskellDB.HDBRec.ShowRecRow (Database.HaskellDB.HDBRec.RecCons a b c)
instance Database.HaskellDB.HDBRec.ShowRecRow r => Database.HaskellDB.HDBRec.ShowRecRow (Database.HaskellDB.HDBRec.Record r)
instance GHC.Show.Show r => GHC.Show.Show (Database.HaskellDB.HDBRec.Record r)
instance GHC.Show.Show Database.HaskellDB.HDBRec.RecNil
instance (Database.HaskellDB.HDBRec.FieldTag a, GHC.Show.Show b, Database.HaskellDB.HDBRec.ShowRecRow c) => GHC.Show.Show (Database.HaskellDB.HDBRec.RecCons a b c)
instance Database.HaskellDB.HDBRec.ReadRecRow Database.HaskellDB.HDBRec.RecNil
instance (Database.HaskellDB.HDBRec.FieldTag a, GHC.Read.Read b, Database.HaskellDB.HDBRec.ReadRecRow c) => Database.HaskellDB.HDBRec.ReadRecRow (Database.HaskellDB.HDBRec.RecCons a b c)
instance Database.HaskellDB.HDBRec.ReadRecRow r => GHC.Read.Read (Database.HaskellDB.HDBRec.Record r)
instance GHC.Read.Read Database.HaskellDB.HDBRec.RecNil
instance (Database.HaskellDB.HDBRec.FieldTag a, GHC.Read.Read b, Database.HaskellDB.HDBRec.ReadRecRow c) => GHC.Read.Read (Database.HaskellDB.HDBRec.RecCons a b c)

-- | Basic combinators for building type-safe queries. The Query monad
--   constructs a relational expression (PrimQuery).
module Database.HaskellDB.Query

-- | Type of relations, contains the attributes of the relation and an
--   Alias to which the attributes are renamed in the
--   PrimQuery.
data Rel r
Rel :: Alias -> Scheme -> Rel r

-- | Typed attributes
data Attr f a
Attr :: Attribute -> Attr f a

-- | Basic tables, contains table name and an association from attributes
--   to attribute names in the real table.
data Table r
Table :: TableName -> Assoc -> Table r
data Query a

-- | Type of normal expressions, contains the untyped PrimExpr.
newtype Expr a
Expr :: PrimExpr -> Expr a
data OrderExpr
class ToPrimExprs r

-- | Converts records w/o Expr (usually from database queries) to records
--   with Expr types.
class ConstantRecord r cr | r -> cr
constantRecord :: ConstantRecord r cr => r -> cr
class ShowConstant a
showConstant :: ShowConstant a => a -> Literal

-- | Class of expression types.
class ExprC e

-- | Get the underlying untyped PrimExpr.
primExpr :: ExprC e => e a -> PrimExpr

-- | Class of expressions that can be used with project.
class ExprC e => ProjectExpr e

-- | Class of records that can be used with project. All all the
--   values must be instances of ProjectExpr for the record to be an
--   instance of ProjectRec.
class ProjectRec r er | r -> er

-- | Class of records that can be used with insert. All all the
--   values must be instances of InsertExpr for the record to be an
--   instance of InsertRec.
class InsertRec r er | r -> er

-- | Type of aggregate expressions.
newtype ExprAggr a
ExprAggr :: PrimExpr -> ExprAggr a

-- | The type of default expressions.
newtype ExprDefault a
ExprDefault :: PrimExpr -> ExprDefault a

-- | Creates a single-field record from an attribute and a table. Useful
--   for building projections that will re-use the same attribute name.
--   copy attr tbl is equivalent to:
--   
--   
--   attr .=. (tbl .!. attr)
--   
copy :: (HasField f r) => Attr f a -> Rel r -> Record (RecCons f (Expr a) RecNil)

-- | Copies all columns in the relation given. Useful for appending the
--   remaining columns in a table to a projection. For example:
--   
--   
--   query = do
--     tbl <- table some_table
--     project $ copyAll tbl
--   
--   
--   will add all columns in "some_table" to the query.
copyAll :: (RelToRec r) => Rel r -> Record r

-- | Helper class which gives a polymorphic copy function that can turn a
--   Rel into a Record.
class RelToRec a

-- | Equality comparison on Exprs, = in SQL.
(.==.) :: Eq a => Expr a -> Expr a -> Expr Bool

-- | Inequality on Exprs, <> in SQL.
(.<>.) :: Eq a => Expr a -> Expr a -> Expr Bool
(.<.) :: Ord a => Expr a -> Expr a -> Expr Bool
(.<=.) :: Ord a => Expr a -> Expr a -> Expr Bool
(.>.) :: Ord a => Expr a -> Expr a -> Expr Bool
(.>=.) :: Ord a => Expr a -> Expr a -> Expr Bool

-- | "Logical and" on Expr, AND in SQL.
(.&&.) :: Expr Bool -> Expr Bool -> Expr Bool

-- | "Logical or" on Expr. OR in SQL.
(.||.) :: Expr Bool -> Expr Bool -> Expr Bool

-- | Multiplication
(.*.) :: Num a => Expr a -> Expr a -> Expr a

-- | Division
(./.) :: Num a => Expr a -> Expr a -> Expr a

-- | Addition
(.+.) :: Num a => Expr a -> Expr a -> Expr a

-- | Subtraction
(.-.) :: Num a => Expr a -> Expr a -> Expr a

-- | Modulo
(.%.) :: Num a => Expr a -> Expr a -> Expr a

-- | Concatenates two String-expressions.
(.++.) :: Expr String -> Expr String -> Expr String

-- | Creates a record field. Similar to '(.=.)', but gets the field label
--   from an Attr.
(<<) :: Attr f a -> e a -> Record (RecCons f (e a) RecNil)

-- | Convenience operator for constructing records of constants. Useful
--   primarily with insert. f <<- x is the same as
--   f << constant x
(<<-) :: ShowConstant a => Attr f a -> a -> Record (RecCons f (Expr a) RecNil)

-- | Specifies a subset of the columns in the table.
project :: (ShowLabels r, ToPrimExprs r, ProjectRec r er) => Record r -> Query (Rel er)

-- | Restricts the records to only those who evaluates the expression to
--   True.
restrict :: Expr Bool -> Query ()

-- | Return all records from a specific table.
table :: (ShowRecRow r) => Table r -> Query (Rel r)

-- | Restricts the relation given to only return unique records. Upshot is
--   all projected attributes will be grouped.
unique :: Query ()

-- | Return all records which are present in at least one of the relations.
union :: Query (Rel r) -> Query (Rel r) -> Query (Rel r)

-- | UNION ALL
unionAll :: Query (Rel r) -> Query (Rel r) -> Query (Rel r)

-- | Return all records which are present in both relations.
intersect :: Query (Rel r) -> Query (Rel r) -> Query (Rel r)

-- | Not in SQL92.
divide :: Query (Rel r) -> Query (Rel r) -> Query (Rel r)

-- | Return all records from the first relation that are not present in the
--   second relation.
minus :: Query (Rel r) -> Query (Rel r) -> Query (Rel r)

-- | The inverse of an Expr Bool.
_not :: Expr Bool -> Expr Bool

-- | The HaskellDB counterpart to the SQL LIKE keyword. In the expresions,
--   % is a wildcard representing any characters in the same position
--   relavtive to the given characters and _ is a wildcard representing one
--   character e.g.
--   
--   
--   like (constant "ABCDEFFF") (constant "AB%F_F")
--   
--   
--   is true while
--   
--   
--   like (constant "ABCDEF") (constant "AC%F") 
--   
--   
--   is false.
--   
--   Note that SQL92 does not specify whether LIKE is case-sensitive or
--   not. Different database systems implement this differently.
like :: Expr String -> Expr String -> Expr Bool

-- | Returns true if the value of the first operand is equal to the value
--   of any of the expressions in the list operand.
_in :: Eq a => Expr a -> [Expr a] -> Expr Bool

-- | Produces the concatenation of two String-expressions.
cat :: Expr String -> Expr String -> Expr String

-- | Gets the length of a string.
_length :: Expr String -> Expr Int

-- | Returns true if the expression is Null.
isNull :: Expr a -> Expr Bool

-- | The inverse of isNull, returns false if the expression supplied
--   is Null.
notNull :: Expr a -> Expr Bool

-- | Takes a default value a and a nullable value. If the value is NULL,
--   the default value is returned, otherwise the value itself is returned.
--   Simliar to fromMaybe
fromNull :: Expr a -> Expr (Maybe a) -> Expr a

-- | Similar to fromNull, but takes a value argument rather than an Expr.
fromVal :: ShowConstant a => a -> Expr (Maybe a) -> Expr a

-- | Creates a constant expression from a haskell value.
constant :: ShowConstant a => a -> Expr a

-- | Turn constant data into a nullable expression. Same as constant .
--   Just
constVal :: ShowConstant a => a -> Expr (Maybe a)

-- | Represents a null value.
constNull :: Expr (Maybe a)

-- | Turn constant data into a nullable expression. Same as constant .
--   Just
constExpr :: Expr a -> Expr (Maybe a)

-- | Create an anonymous parameter with a default value.
param :: Expr a -> Expr a

-- | Create a named parameter with a default value.
namedParam :: Name -> Expr a -> Expr a

-- | Used to implement variable length arguments to func, below.
class Args a

-- | Can be used to define SQL functions which will appear in queries. Each
--   argument for the function is specified by its own Expr value. Examples
--   include:
--   
--   
--   lower :: Expr a -> Expr (Maybe String) 
--   lower str = func "lower" str
--   
--   
--   The arguments to the function do not have to be Expr if they can be
--   converted to Expr:
--   
--   
--   data DatePart = Day | Century deriving Show 
--   
--   
--   
--   datePart :: DatePart -> Expr (Maybe CalendarTime) -> Expr (Maybe Int) 
--   datePart date col = func "date_part" (constant $ show date) col
--   
--   
--   Aggregate functions can also be defined. For example:
--   
--   
--   every :: Expr Bool -> ExprAggr Bool 
--   every col = func "every" col
--   
--   
--   Aggregates are implemented to always take one argument, so any attempt
--   to define an aggregate with any more or less arguments will result in
--   an error.
--   
--   Note that type signatures are usually required for each function
--   defined, unless the arguments can be inferred.
func :: (Args a) => String -> a

-- | Generates a CAST expression for the given expression, using
--   the argument given as the destination type.
cast :: String -> Expr a -> Expr b

-- | Convert a bounded string to a real string.
toStr :: BStrToStr s d => s -> d

-- | Coerce the type of an expression to another type. Does not affect the
--   actual primitive value - only the phantom type.
coerce :: Expr a -> Expr b
select :: HasField f r => Attr f a -> Rel r -> Expr a

-- | Returns the number of records (=rows) in a query.
count :: Expr a -> ExprAggr Int

-- | Returns the total sum of a column.
_sum :: Num a => Expr a -> ExprAggr a

-- | Returns the highest value of a column.
_max :: Ord a => Expr a -> ExprAggr a

-- | Returns the lowest value of a column.
_min :: Ord a => Expr a -> ExprAggr a

-- | Returns the average of a column.
avg :: Num a => Expr a -> ExprAggr a

-- | Inserts the string literally - no escaping, no quoting.
literal :: String -> Expr a

-- | Returns the standard deviation of a column.
stddev :: Num a => Expr a -> ExprAggr a
stddevP :: Num a => Expr a -> ExprAggr a

-- | Returns the standard variance of a column.
variance :: Num a => Expr a -> ExprAggr a
varianceP :: Num a => Expr a -> ExprAggr a

-- | Use this together with the function order to order the results
--   of a query in ascending order. Takes a relation and an attribute of
--   that relation, which is used for the ordering.
asc :: HasField f r => Rel r -> Attr f a -> OrderExpr

-- | Use this together with the function order to order the results
--   of a query in descending order. Takes a relation and an attribute of
--   that relation, which is used for the ordering.
desc :: (HasField f r) => Rel r -> Attr f a -> OrderExpr

-- | Order the results of a query. Use this with the asc or
--   desc functions.
order :: [OrderExpr] -> Query ()

-- | Return the n topmost records.
top :: Int -> Query ()

-- | Skip the n topmost records.
offset :: Int -> Query ()

-- | Creates a conditional expression. Returns the value of the expression
--   corresponding to the first true condition. If none of the conditions
--   are true, the value of the else-expression is returned.
_case :: [(Expr Bool, Expr a)] -> Expr a -> Expr a

-- | The default value of the column. Only works with insert.
_default :: ExprDefault a
runQuery :: Query (Rel r) -> PrimQuery
runQueryRel :: Query (Rel r) -> (PrimQuery, Rel r)
unQuery :: Query a -> a

-- | Allows a subquery to be created between another query and this query.
--   Normally query definition is associative and query definition is
--   interleaved. This combinator ensures the given query is added as a
--   whole piece.
subQuery :: Query (Rel r) -> Query (Rel r)
attribute :: String -> Expr a
attributeName :: Attr f a -> Attribute

-- | Get the name of a table.
tableName :: Table t -> TableName
baseTable :: (ShowLabels r, ToPrimExprs r) => TableName -> Record r -> Table r

-- | For queries against fake tables, such as
--   'information_schema.information_schema_catalog_name'. Useful for
--   constructing queries that contain constant data (and do not select
--   from columns) but need a table to select from.
emptyTable :: TableName -> Table (Record RecNil)
exprs :: ToPrimExprs r => Record r -> [PrimExpr]
labels :: ShowLabels r => r -> [String]
tableRec :: Table (Record r) -> Record r
instance GHC.Show.Show (Database.HaskellDB.Query.ExprDefault a)
instance GHC.Read.Read (Database.HaskellDB.Query.ExprDefault a)
instance GHC.Show.Show (Database.HaskellDB.Query.ExprAggr a)
instance GHC.Read.Read (Database.HaskellDB.Query.ExprAggr a)
instance GHC.Show.Show (Database.HaskellDB.Query.Expr a)
instance GHC.Read.Read (Database.HaskellDB.Query.Expr a)
instance Database.HaskellDB.Query.ExprC Database.HaskellDB.Query.Expr
instance Database.HaskellDB.Query.ExprC Database.HaskellDB.Query.ExprAggr
instance Database.HaskellDB.Query.ExprC Database.HaskellDB.Query.ExprDefault
instance Database.HaskellDB.Query.InsertExpr Database.HaskellDB.Query.Expr
instance Database.HaskellDB.Query.InsertExpr Database.HaskellDB.Query.ExprDefault
instance Database.HaskellDB.Query.InsertRec Database.HaskellDB.HDBRec.RecNil Database.HaskellDB.HDBRec.RecNil
instance (Database.HaskellDB.Query.InsertExpr e, Database.HaskellDB.Query.InsertRec r er) => Database.HaskellDB.Query.InsertRec (Database.HaskellDB.HDBRec.RecCons f (e a) r) (Database.HaskellDB.HDBRec.RecCons f (Database.HaskellDB.Query.Expr a) er)
instance Database.HaskellDB.Query.ProjectExpr Database.HaskellDB.Query.Expr
instance Database.HaskellDB.Query.ProjectExpr Database.HaskellDB.Query.ExprAggr
instance Database.HaskellDB.Query.ProjectRec Database.HaskellDB.HDBRec.RecNil Database.HaskellDB.HDBRec.RecNil
instance (Database.HaskellDB.Query.ProjectExpr e, Database.HaskellDB.Query.ProjectRec r er) => Database.HaskellDB.Query.ProjectRec (Database.HaskellDB.HDBRec.RecCons f (e a) r) (Database.HaskellDB.HDBRec.RecCons f (Database.HaskellDB.Query.Expr a) er)
instance Database.HaskellDB.Query.RelToRec Database.HaskellDB.HDBRec.RecNil
instance (Database.HaskellDB.Query.RelToRec rest, Database.HaskellDB.HDBRec.FieldTag f) => Database.HaskellDB.Query.RelToRec (Database.HaskellDB.HDBRec.RecCons f (Database.HaskellDB.Query.Expr a) rest)
instance Database.HaskellDB.HDBRec.HasField f r => Database.HaskellDB.HDBRec.Select (Database.HaskellDB.Query.Attr f a) (Database.HaskellDB.Query.Rel r) (Database.HaskellDB.Query.Expr a)
instance Database.HaskellDB.BoundedList.Size n => Database.HaskellDB.Query.BStrToStr (Database.HaskellDB.Query.Expr (Database.HaskellDB.BoundedString.BoundedString n)) (Database.HaskellDB.Query.Expr GHC.Base.String)
instance Database.HaskellDB.BoundedList.Size n => Database.HaskellDB.Query.BStrToStr (Database.HaskellDB.Query.Expr (GHC.Base.Maybe (Database.HaskellDB.BoundedString.BoundedString n))) (Database.HaskellDB.Query.Expr (GHC.Base.Maybe GHC.Base.String))
instance Database.HaskellDB.Query.BStrToStr (Database.HaskellDB.Query.Expr (GHC.Base.Maybe GHC.Base.String)) (Database.HaskellDB.Query.Expr (GHC.Base.Maybe GHC.Base.String))
instance Database.HaskellDB.Query.BStrToStr (Database.HaskellDB.Query.Expr GHC.Base.String) (Database.HaskellDB.Query.Expr GHC.Base.String)
instance Database.HaskellDB.Query.IsExpr tail => Database.HaskellDB.Query.IsExpr (Database.HaskellDB.Query.Expr a -> tail)
instance Database.HaskellDB.Query.IsExpr (Database.HaskellDB.Query.Expr a)
instance (Database.HaskellDB.Query.IsExpr tail, Database.HaskellDB.Query.Args tail) => Database.HaskellDB.Query.Args (Database.HaskellDB.Query.Expr a -> tail)
instance Database.HaskellDB.Query.Args (Database.HaskellDB.Query.Expr a)
instance Database.HaskellDB.Query.Args (Database.HaskellDB.Query.Expr a -> Database.HaskellDB.Query.ExprAggr c)
instance Database.HaskellDB.Query.ShowConstant GHC.Base.String
instance Database.HaskellDB.Query.ShowConstant GHC.Types.Int
instance Database.HaskellDB.Query.ShowConstant GHC.Integer.Type.Integer
instance Database.HaskellDB.Query.ShowConstant GHC.Types.Double
instance Database.HaskellDB.Query.ShowConstant GHC.Types.Bool
instance Database.HaskellDB.Query.ShowConstant System.Time.CalendarTime
instance Database.HaskellDB.Query.ShowConstant a => Database.HaskellDB.Query.ShowConstant (GHC.Base.Maybe a)
instance Database.HaskellDB.BoundedList.Size n => Database.HaskellDB.Query.ShowConstant (Database.HaskellDB.BoundedString.BoundedString n)
instance Database.HaskellDB.Query.ConstantRecord r cr => Database.HaskellDB.Query.ConstantRecord (Database.HaskellDB.HDBRec.Record r) (Database.HaskellDB.HDBRec.Record cr)
instance Database.HaskellDB.Query.ConstantRecord Database.HaskellDB.HDBRec.RecNil Database.HaskellDB.HDBRec.RecNil
instance (Database.HaskellDB.Query.ShowConstant a, Database.HaskellDB.Query.ConstantRecord r cr) => Database.HaskellDB.Query.ConstantRecord (Database.HaskellDB.HDBRec.RecCons f a r) (Database.HaskellDB.HDBRec.RecCons f (Database.HaskellDB.Query.Expr a) cr)
instance GHC.Base.Functor Database.HaskellDB.Query.Query
instance GHC.Base.Monad Database.HaskellDB.Query.Query
instance GHC.Base.Applicative Database.HaskellDB.Query.Query
instance Database.HaskellDB.Query.ToPrimExprs Database.HaskellDB.HDBRec.RecNil
instance (Database.HaskellDB.Query.ExprC e, Database.HaskellDB.Query.ToPrimExprs r) => Database.HaskellDB.Query.ToPrimExprs (Database.HaskellDB.HDBRec.RecCons l (e a) r)

-- | Defines the types of database columns, and functions for converting
--   these between HSQL and internal formats
module Database.HaskellDB.FieldType

-- | The type and nullable flag of a database column
type FieldDesc = (FieldType, Bool)

-- | A database column type
data FieldType
StringT :: FieldType
IntT :: FieldType
IntegerT :: FieldType
DoubleT :: FieldType
BoolT :: FieldType
CalendarTimeT :: FieldType
LocalTimeT :: FieldType
BStrT :: Int -> FieldType
toHaskellType :: FieldType -> String

-- | Class which retrieves a field description from a given type. Instances
--   are provided for most concrete types. Instances for Maybe
--   automatically make the field nullable, and instances for all (Expr a)
--   types where a has an ExprType instance allows type information to be
--   recovered from a given column expression.
class ExprType e
fromHaskellType :: ExprType e => e -> FieldDesc

-- | Class which returns a list of field descriptions. Gets the
--   descriptions of all columns in a Record/query. Most useful when the
--   columns associated with each field in a (Rel r) type must be
--   recovered. Note that this occurs at the type level only and no values
--   are inspected.
class ExprTypes r
fromHaskellTypes :: ExprTypes r => r -> [FieldDesc]

-- | Given a query, returns a list of the field names and their types used
--   by the query. Useful for recovering field information once a query has
--   been built up.
queryFields :: (ShowLabels r, ExprTypes r) => Query (Rel r) -> [(String, FieldDesc)]
instance GHC.Read.Read Database.HaskellDB.FieldType.FieldType
instance GHC.Show.Show Database.HaskellDB.FieldType.FieldType
instance GHC.Classes.Ord Database.HaskellDB.FieldType.FieldType
instance GHC.Classes.Eq Database.HaskellDB.FieldType.FieldType
instance Database.HaskellDB.FieldType.ExprType a => Database.HaskellDB.FieldType.ExprType (GHC.Base.Maybe a)
instance Database.HaskellDB.FieldType.ExprType a => Database.HaskellDB.FieldType.ExprType (Database.HaskellDB.Query.Expr a)
instance Database.HaskellDB.FieldType.ExprType a => Database.HaskellDB.FieldType.ExprType (Database.HaskellDB.Query.Rel a)
instance Database.HaskellDB.FieldType.ExprType GHC.Types.Bool
instance Database.HaskellDB.FieldType.ExprType GHC.Base.String
instance Database.HaskellDB.FieldType.ExprType GHC.Types.Int
instance Database.HaskellDB.FieldType.ExprType GHC.Integer.Type.Integer
instance Database.HaskellDB.FieldType.ExprType GHC.Types.Double
instance Database.HaskellDB.FieldType.ExprType System.Time.CalendarTime
instance Database.HaskellDB.FieldType.ExprType Data.Time.LocalTime.LocalTime.LocalTime
instance Database.HaskellDB.BoundedList.Size n => Database.HaskellDB.FieldType.ExprType (Database.HaskellDB.BoundedString.BoundedString n)
instance Database.HaskellDB.FieldType.ExprTypes Database.HaskellDB.HDBRec.RecNil
instance (Database.HaskellDB.FieldType.ExprType e, Database.HaskellDB.FieldType.ExprTypes r) => Database.HaskellDB.FieldType.ExprTypes (Database.HaskellDB.HDBRec.RecCons f e r)
instance Database.HaskellDB.FieldType.ExprTypes r => Database.HaskellDB.FieldType.ExprTypes (Database.HaskellDB.HDBRec.Record r)
instance Database.HaskellDB.FieldType.ExprTypes r => Database.HaskellDB.FieldType.ExprTypes (Database.HaskellDB.Query.Rel r)

-- | The type of SQL generators.
module Database.HaskellDB.Sql.Generate
data SqlGenerator
SqlGenerator :: (PrimQuery -> SqlSelect) -> (TableName -> [PrimExpr] -> Assoc -> SqlUpdate) -> (TableName -> [PrimExpr] -> SqlDelete) -> (TableName -> Assoc -> SqlInsert) -> (TableName -> PrimQuery -> SqlInsert) -> (String -> SqlCreate) -> (TableName -> [(Attribute, FieldDesc)] -> SqlCreate) -> (String -> SqlDrop) -> (TableName -> SqlDrop) -> SqlSelect -> (TableName -> Scheme -> SqlSelect) -> (Assoc -> SqlSelect -> SqlSelect) -> (Assoc -> SqlSelect -> SqlSelect) -> (PrimExpr -> SqlSelect -> SqlSelect) -> (RelOp -> SqlSelect -> SqlSelect -> SqlSelect) -> (SpecialOp -> SqlSelect -> SqlSelect) -> (PrimExpr -> SqlExpr) -> (Literal -> String) -> (FieldType -> SqlType) -> (String -> String) -> SqlGenerator
[sqlQuery] :: SqlGenerator -> PrimQuery -> SqlSelect
[sqlUpdate] :: SqlGenerator -> TableName -> [PrimExpr] -> Assoc -> SqlUpdate
[sqlDelete] :: SqlGenerator -> TableName -> [PrimExpr] -> SqlDelete
[sqlInsert] :: SqlGenerator -> TableName -> Assoc -> SqlInsert
[sqlInsertQuery] :: SqlGenerator -> TableName -> PrimQuery -> SqlInsert
[sqlCreateDB] :: SqlGenerator -> String -> SqlCreate
[sqlCreateTable] :: SqlGenerator -> TableName -> [(Attribute, FieldDesc)] -> SqlCreate
[sqlDropDB] :: SqlGenerator -> String -> SqlDrop
[sqlDropTable] :: SqlGenerator -> TableName -> SqlDrop
[sqlEmpty] :: SqlGenerator -> SqlSelect
[sqlTable] :: SqlGenerator -> TableName -> Scheme -> SqlSelect
[sqlProject] :: SqlGenerator -> Assoc -> SqlSelect -> SqlSelect

-- | Ensures non-aggregate expressions in the select are included in group
--   by clause.
[sqlGroup] :: SqlGenerator -> Assoc -> SqlSelect -> SqlSelect
[sqlRestrict] :: SqlGenerator -> PrimExpr -> SqlSelect -> SqlSelect
[sqlBinary] :: SqlGenerator -> RelOp -> SqlSelect -> SqlSelect -> SqlSelect
[sqlSpecial] :: SqlGenerator -> SpecialOp -> SqlSelect -> SqlSelect
[sqlExpr] :: SqlGenerator -> PrimExpr -> SqlExpr
[sqlLiteral] :: SqlGenerator -> Literal -> String
[sqlType] :: SqlGenerator -> FieldType -> SqlType

-- | Turn a string into a quoted string. Quote characters and any escaping
--   are handled by this function.
[sqlQuote] :: SqlGenerator -> String -> String

-- | Default SQL generation.
module Database.HaskellDB.Sql.Default
mkSqlGenerator :: SqlGenerator -> SqlGenerator
defaultSqlGenerator :: SqlGenerator

-- | Creates a SqlSelect based on the PrimQuery supplied.
--   Corresponds to the SQL statement SELECT.
defaultSqlQuery :: SqlGenerator -> PrimQuery -> SqlSelect

-- | Creates a SqlUpdate. Corresponds to the SQL statement UPDATE
--   which updates data in a table.
defaultSqlUpdate :: SqlGenerator -> TableName -> [PrimExpr] -> Assoc -> SqlUpdate

-- | Creates a SqlDelete. Corresponds to the SQL statement DELETE
--   which deletes rows in a table.
defaultSqlDelete :: SqlGenerator -> TableName -> [PrimExpr] -> SqlDelete

-- | Creates a SqlInsert.
defaultSqlInsert :: SqlGenerator -> TableName -> Assoc -> SqlInsert

-- | Creates a SqlInsert. Corresponds to the SQL statement INSERT
--   INTO which is used to insert new rows in a table.
defaultSqlInsertQuery :: SqlGenerator -> TableName -> PrimQuery -> SqlInsert

-- | Use this to create a SqlCreate data type corresponding to the
--   SQL statement CREATE DATABASE which creates a new database.
defaultSqlCreateDB :: SqlGenerator -> String -> SqlCreate

-- | Use this to create a SqlCreate data type corresponding to the
--   SQL statement CREATE which creates a new table.
defaultSqlCreateTable :: SqlGenerator -> TableName -> [(Attribute, FieldDesc)] -> SqlCreate

-- | Creates a SqlDrop that delete the database with the name given
--   as the first argument.
defaultSqlDropDB :: SqlGenerator -> String -> SqlDrop

-- | Creates a SqlDrop that delete the database named in the first
--   argument.
defaultSqlDropTable :: SqlGenerator -> TableName -> SqlDrop
defaultSqlEmpty :: SqlGenerator -> SqlSelect
defaultSqlTable :: SqlGenerator -> TableName -> Scheme -> SqlSelect
defaultSqlProject :: SqlGenerator -> Assoc -> SqlSelect -> SqlSelect
defaultSqlRestrict :: SqlGenerator -> PrimExpr -> SqlSelect -> SqlSelect
defaultSqlBinary :: SqlGenerator -> RelOp -> SqlSelect -> SqlSelect -> SqlSelect

-- | Ensures the groupby value on the SqlSelect either preserves existing
--   grouping or that it will group on all columns (i.e, Mark == All).
defaultSqlGroup :: SqlGenerator -> Assoc -> SqlSelect -> SqlSelect
defaultSqlSpecial :: SqlGenerator -> SpecialOp -> SqlSelect -> SqlSelect
defaultSqlExpr :: SqlGenerator -> PrimExpr -> SqlExpr
defaultSqlLiteral :: SqlGenerator -> Literal -> String
defaultSqlType :: SqlGenerator -> FieldType -> SqlType
defaultSqlQuote :: SqlGenerator -> String -> String

-- | Make sure our SqlSelect statement is really a SqlSelect and not
--   another constructor.
toSqlSelect :: SqlSelect -> SqlSelect

-- | Author : Justin Bailey (jgbailey AT gmail DOT com) Pretty printing for
--   Query, PrimQuery, and SqlSelect values. Useful for debugging the
--   library.
module Database.HaskellDB.PrintQuery

-- | Optimize the query and pretty print the primitive representation.
ppQuery :: Query (Rel r) -> Doc

-- | Pretty print the primitive representation of an unoptimized query.
ppQueryUnOpt :: Query (Rel r) -> Doc

-- | Take a query, turn it into a SqlSelect and print it.
ppSelect :: Query (Rel r) -> Doc

-- | Take a query, turn it into a SqlSelect and print it, with
--   optimizations.
ppSelectUnOpt :: Query (Rel r) -> Doc
ppSqlSelect :: SqlSelect -> Doc

-- | Pretty print a PrimQuery value.
ppPrim :: PrimQuery -> Doc

-- | Take a query, turn it into a SqlSelect and print it.
ppSql :: Query (Rel r) -> Doc

-- | Take a query, turn it into a SqlSelect and print it.
ppSqlUnOpt :: Query (Rel r) -> Doc

-- | SQL generation for MySQL.
module Database.HaskellDB.Sql.MySQL
generator :: SqlGenerator

-- | SQL generation for SQLite. See http://www.sqlite.org/lang.html
--   for documentation.
module Database.HaskellDB.Sql.SQLite
generator :: SqlGenerator

-- | Defines standard database operations and the primitive hooks that a
--   particular database binding must provide.
module Database.HaskellDB.Database

-- | The (!.) operator selects over returned records from the database (=
--   rows) Non-overloaded version of !. For backwards compatibility.
(!.) :: Select f r a => r -> f -> a
data Database
Database :: (forall er vr. GetRec er vr => PrimQuery -> Rel er -> IO [Record vr]) -> (TableName -> Assoc -> IO ()) -> (TableName -> PrimQuery -> IO ()) -> (TableName -> [PrimExpr] -> IO ()) -> (TableName -> [PrimExpr] -> Assoc -> IO ()) -> IO [TableName] -> (TableName -> IO [(Attribute, FieldDesc)]) -> (forall a. IO a -> IO a) -> (String -> IO ()) -> (TableName -> [(Attribute, FieldDesc)] -> IO ()) -> (String -> IO ()) -> (TableName -> IO ()) -> IO () -> Database
[dbQuery] :: Database -> forall er vr. GetRec er vr => PrimQuery -> Rel er -> IO [Record vr]
[dbInsert] :: Database -> TableName -> Assoc -> IO ()
[dbInsertQuery] :: Database -> TableName -> PrimQuery -> IO ()
[dbDelete] :: Database -> TableName -> [PrimExpr] -> IO ()
[dbUpdate] :: Database -> TableName -> [PrimExpr] -> Assoc -> IO ()
[dbTables] :: Database -> IO [TableName]
[dbDescribe] :: Database -> TableName -> IO [(Attribute, FieldDesc)]
[dbTransaction] :: Database -> forall a. IO a -> IO a
[dbCreateDB] :: Database -> String -> IO ()
[dbCreateTable] :: Database -> TableName -> [(Attribute, FieldDesc)] -> IO ()
[dbDropDB] :: Database -> String -> IO ()
[dbDropTable] :: Database -> TableName -> IO ()
[dbCommit] :: Database -> IO ()
class GetRec er vr | er -> vr, vr -> er

-- | Create a result record.
getRec :: GetRec er vr => GetInstances s -> Rel er -> Scheme -> s -> IO (Record vr)

-- | Functions for getting values of a given type. Database drivers need to
--   implement these functions and pass this record to getRec when
--   getting query results.
--   
--   All these functions should return Nothing if the value is NULL.
data GetInstances s
GetInstances :: (s -> String -> IO (Maybe String)) -> (s -> String -> IO (Maybe Int)) -> (s -> String -> IO (Maybe Integer)) -> (s -> String -> IO (Maybe Double)) -> (s -> String -> IO (Maybe Bool)) -> (s -> String -> IO (Maybe CalendarTime)) -> (s -> String -> IO (Maybe LocalTime)) -> GetInstances s

-- | Get a String value.
[getString] :: GetInstances s -> s -> String -> IO (Maybe String)

-- | Get an Int value.
[getInt] :: GetInstances s -> s -> String -> IO (Maybe Int)

-- | Get an Integer value.
[getInteger] :: GetInstances s -> s -> String -> IO (Maybe Integer)

-- | Get a Double value.
[getDouble] :: GetInstances s -> s -> String -> IO (Maybe Double)

-- | Get a Bool value.
[getBool] :: GetInstances s -> s -> String -> IO (Maybe Bool)

-- | Get a CalendarTime value.
[getCalendarTime] :: GetInstances s -> s -> String -> IO (Maybe CalendarTime)

-- | Get a LocalTime value.
[getLocalTime] :: GetInstances s -> s -> String -> IO (Maybe LocalTime)
class GetValue a
getValue :: GetValue a => GetInstances s -> s -> String -> IO a

-- | performs a query on a database
query :: GetRec er vr => Database -> Query (Rel er) -> IO [Record vr]

-- | Inserts a record into a table
insert :: (ToPrimExprs r, ShowRecRow r, InsertRec r er) => Database -> Table er -> Record r -> IO ()

-- | deletes a bunch of records
delete :: ShowRecRow r => Database -> Table r -> (Rel r -> Expr Bool) -> IO ()

-- | Updates records
update :: (ShowLabels s, ToPrimExprs s) => Database -> Table r -> (Rel r -> Expr Bool) -> (Rel r -> Record s) -> IO ()

-- | Inserts values from a query into a table
insertQuery :: ShowRecRow r => Database -> Table r -> Query (Rel r) -> IO ()

-- | List all tables in the database
tables :: Database -> IO [TableName]

-- | List all columns in a table, along with their types
describe :: Database -> TableName -> IO [(Attribute, FieldDesc)]

-- | Performs some database action in a transaction. If no exception is
--   thrown, the changes are committed.
transaction :: Database -> IO a -> IO a

-- | Commit any pending data to the database.
commit :: Database -> IO ()

-- | Is not very useful. You need to be root to use it. We suggest you
--   solve this in another way
createDB :: Database -> String -> IO ()
createTable :: Database -> TableName -> [(Attribute, FieldDesc)] -> IO ()
dropDB :: Database -> String -> IO ()
dropTable :: Database -> TableName -> IO ()
instance Database.HaskellDB.Database.GetRec Database.HaskellDB.HDBRec.RecNil Database.HaskellDB.HDBRec.RecNil
instance (Database.HaskellDB.Database.GetValue a, Database.HaskellDB.Database.GetRec er vr) => Database.HaskellDB.Database.GetRec (Database.HaskellDB.HDBRec.RecCons f (Database.HaskellDB.Query.Expr a) er) (Database.HaskellDB.HDBRec.RecCons f a vr)
instance Database.HaskellDB.Database.GetValue GHC.Base.String
instance Database.HaskellDB.Database.GetValue GHC.Types.Int
instance Database.HaskellDB.Database.GetValue GHC.Integer.Type.Integer
instance Database.HaskellDB.Database.GetValue GHC.Types.Double
instance Database.HaskellDB.Database.GetValue GHC.Types.Bool
instance Database.HaskellDB.Database.GetValue System.Time.CalendarTime
instance Database.HaskellDB.Database.GetValue Data.Time.LocalTime.LocalTime.LocalTime
instance Database.HaskellDB.BoundedList.Size n => Database.HaskellDB.Database.GetValue (Database.HaskellDB.BoundedString.BoundedString n)
instance Database.HaskellDB.Database.GetValue (GHC.Base.Maybe GHC.Base.String)
instance Database.HaskellDB.Database.GetValue (GHC.Base.Maybe GHC.Types.Int)
instance Database.HaskellDB.Database.GetValue (GHC.Base.Maybe GHC.Integer.Type.Integer)
instance Database.HaskellDB.Database.GetValue (GHC.Base.Maybe GHC.Types.Double)
instance Database.HaskellDB.Database.GetValue (GHC.Base.Maybe GHC.Types.Bool)
instance Database.HaskellDB.Database.GetValue (GHC.Base.Maybe System.Time.CalendarTime)
instance Database.HaskellDB.Database.GetValue (GHC.Base.Maybe Data.Time.LocalTime.LocalTime.LocalTime)
instance Database.HaskellDB.BoundedList.Size n => Database.HaskellDB.Database.GetValue (GHC.Base.Maybe (Database.HaskellDB.BoundedString.BoundedString n))

-- | This is the "core" file of the DBSpec files. It defines a DBInfo and
--   important functions on it.
module Database.HaskellDB.DBSpec.DBInfo

-- | Defines a database layout, top level
data DBInfo
DBInfo :: String -> DBOptions -> [TInfo] -> DBInfo

-- | The name of the database
[dbname] :: DBInfo -> String

-- | Any options (i.e whether to use Bounded Strings)
[opts] :: DBInfo -> DBOptions

-- | Tables this database contains
[tbls] :: DBInfo -> [TInfo]
data TInfo
TInfo :: String -> [CInfo] -> TInfo

-- | The name of the table
[tname] :: TInfo -> String

-- | The columns in this table
[cols] :: TInfo -> [CInfo]
data CInfo
CInfo :: String -> FieldDesc -> CInfo

-- | The name of this column
[cname] :: CInfo -> String

-- | The description of this column
[descr] :: CInfo -> FieldDesc
data DBOptions
DBOptions :: Bool -> MakeIdentifiers -> DBOptions

-- | Use Bounded Strings?
[useBString] :: DBOptions -> Bool

-- | Conversion routines from Database identifiers to Haskell identifiers
[makeIdent] :: DBOptions -> MakeIdentifiers

-- | Creates a DBInfo
makeDBSpec :: String -> DBOptions -> [TInfo] -> DBInfo

-- | Creates a TInfo
makeTInfo :: String -> [CInfo] -> TInfo

-- | Creates a CInfo
makeCInfo :: String -> FieldDesc -> CInfo

-- | Pretty prints a DBInfo
ppDBInfo :: DBInfo -> Doc
ppTInfo :: TInfo -> Doc
ppCInfo :: CInfo -> Doc
ppDBOptions :: DBOptions -> Doc

-- | Creates a valid declaration of a DBInfo. The variable name will be the
--   same as the database name
dbInfoToDoc :: DBInfo -> Doc

-- | Does a final "touching up" of a DBInfo before it is used by i.e
--   DBDirect. This converts any Bounded Strings to ordinary strings if
--   that flag is set.
finalizeSpec :: DBInfo -> DBInfo

-- | Constructs a DBInfo that doesn't cause nameclashes
constructNonClashingDBInfo :: DBInfo -> DBInfo
instance GHC.Show.Show Database.HaskellDB.DBSpec.DBInfo.DBInfo
instance GHC.Show.Show Database.HaskellDB.DBSpec.DBInfo.TInfo
instance GHC.Classes.Eq Database.HaskellDB.DBSpec.DBInfo.TInfo
instance GHC.Show.Show Database.HaskellDB.DBSpec.DBInfo.CInfo
instance GHC.Classes.Eq Database.HaskellDB.DBSpec.DBInfo.CInfo
instance GHC.Show.Show Database.HaskellDB.DBSpec.DBInfo.DBOptions

-- | Converts a DBSpec-generated database to a set of (FilePath,Doc), that
--   can be used to generate definition files usable in HaskellDB (the
--   generation itself is done in DBDirect)
module Database.HaskellDB.DBSpec.DBSpecToDBDirect

-- | Converts a database specification to a set of module names and module
--   contents. The first element of the returned list is the top-level
--   module.
specToHDB :: String -> DBInfo -> [(String, Doc)]

-- | Create module files in the given directory for the given DBInfo
dbInfoToModuleFiles :: FilePath -> String -> DBInfo -> IO ()

-- | Connects to a Database and generates a DBSpec specification from it.
module Database.HaskellDB.DBSpec.DatabaseToDBSpec

-- | Connects to a database and generates a specification from it
dbToDBSpec :: Bool -> MakeIdentifiers -> String -> Database -> IO DBInfo

-- | Connects to a database and generates stuff in it according to what's
--   inside the DBSpec.
module Database.HaskellDB.DBSpec.DBSpecToDatabase

-- | Converts a DBInfo to a real life Database, note that the database must
--   exist for this to work
dbSpecToDatabase :: Database -> DBInfo -> IO ()

-- | Create a database table specified by a TInfo.
tInfoToTable :: Database -> TInfo -> IO ()

-- | DBSpec is the new and improved way of specifying databases. It is
--   designed to be able to describe a database in such a way that it can
--   easily be converted to a DBDirect-spec OR directly into a database
module Database.HaskellDB.DBSpec

-- | Defines a database layout, top level
data DBInfo
DBInfo :: String -> DBOptions -> [TInfo] -> DBInfo

-- | The name of the database
[dbname] :: DBInfo -> String

-- | Any options (i.e whether to use Bounded Strings)
[opts] :: DBInfo -> DBOptions

-- | Tables this database contains
[tbls] :: DBInfo -> [TInfo]
data TInfo
TInfo :: String -> [CInfo] -> TInfo

-- | The name of the table
[tname] :: TInfo -> String

-- | The columns in this table
[cols] :: TInfo -> [CInfo]
data CInfo
CInfo :: String -> FieldDesc -> CInfo

-- | The name of this column
[cname] :: CInfo -> String

-- | The description of this column
[descr] :: CInfo -> FieldDesc
data DBOptions
DBOptions :: Bool -> MakeIdentifiers -> DBOptions

-- | Use Bounded Strings?
[useBString] :: DBOptions -> Bool

-- | Conversion routines from Database identifiers to Haskell identifiers
[makeIdent] :: DBOptions -> MakeIdentifiers

-- | The type and nullable flag of a database column
type FieldDesc = (FieldType, Bool)

-- | A database column type
data FieldType
StringT :: FieldType
IntT :: FieldType
IntegerT :: FieldType
DoubleT :: FieldType
BoolT :: FieldType
CalendarTimeT :: FieldType
LocalTimeT :: FieldType
BStrT :: Int -> FieldType

-- | Creates a DBInfo
makeDBSpec :: String -> DBOptions -> [TInfo] -> DBInfo

-- | Creates a TInfo
makeTInfo :: String -> [CInfo] -> TInfo

-- | Creates a CInfo
makeCInfo :: String -> FieldDesc -> CInfo

-- | Constructs a DBInfo that doesn't cause nameclashes
constructNonClashingDBInfo :: DBInfo -> DBInfo

-- | Pretty prints a DBInfo
ppDBInfo :: DBInfo -> Doc
ppTInfo :: TInfo -> Doc
ppCInfo :: CInfo -> Doc
ppDBOptions :: DBOptions -> Doc

-- | Creates a valid declaration of a DBInfo. The variable name will be the
--   same as the database name
dbInfoToDoc :: DBInfo -> Doc

-- | Does a final "touching up" of a DBInfo before it is used by i.e
--   DBDirect. This converts any Bounded Strings to ordinary strings if
--   that flag is set.
finalizeSpec :: DBInfo -> DBInfo

-- | Connects to a database and generates a specification from it
dbToDBSpec :: Bool -> MakeIdentifiers -> String -> Database -> IO DBInfo

-- | Converts a DBInfo to a real life Database, note that the database must
--   exist for this to work
dbSpecToDatabase :: Database -> DBInfo -> IO ()

-- | Exports every function needed by DBDirect generated files
module Database.HaskellDB.DBLayout

-- | CalendarTime is a user-readable and manipulable representation
--   of the internal ClockTime type.
data CalendarTime :: *

-- | A simple day and time aggregate, where the day is of the specified
--   parameter, and the time is a TimeOfDay. Conversion of this (as local
--   civil time) to UTC depends on the time zone. Conversion of this (as
--   local mean time) to UT1 depends on the longitude.
data LocalTime :: *

-- | Type of normal expressions, contains the untyped PrimExpr.
data Expr a

-- | Basic tables, contains table name and an association from attributes
--   to attribute names in the real table.
data Table r

-- | Typed attributes
data Attr f a
baseTable :: (ShowLabels r, ToPrimExprs r) => TableName -> Record r -> Table r

-- | Constructor that adds a field to a record. f is the field tag, a is
--   the field value and b is the rest of the record.
data RecCons f a b

-- | The empty record.
data RecNil

-- | Class for field labels.
class FieldTag f

-- | Gets the name of the label.
fieldName :: FieldTag f => f -> String

-- | Constructs a table entry from a field tag
hdbMakeEntry :: FieldTag f => f -> Record (RecCons f (Expr a) RecNil)

-- | Make an Attr for a field.
mkAttr :: FieldTag f => f -> Attr f a

-- | Adds the field from a one-field record to another record.
(#) :: Record (RecCons f a RecNil) -> (b -> c) -> (b -> RecCons f a c)

-- | For queries against fake tables, such as
--   'information_schema.information_schema_catalog_name'. Useful for
--   constructing queries that contain constant data (and do not select
--   from columns) but need a table to select from.
emptyTable :: TableName -> Table (Record RecNil)

-- | SQL generation for PostgreSQL.
module Database.HaskellDB.Sql.PostgreSQL
generator :: SqlGenerator

-- | This exports an API that all drivers must conform to. It is used by
--   the end user to load drivers either dynamically or statically.
module Database.HaskellDB.DriverAPI

-- | Interface which drivers should implement. The connect function
--   takes some driver specific name, value pairs use to setup the database
--   connection, and a database action to run. requiredOptions lists
--   all required options with a short description, that is printed as help
--   in the DBDirect program.
data DriverInterface
DriverInterface :: (forall m a. MonadIO m => [(String, String)] -> (Database -> m a) -> m a) -> [(String, String)] -> DriverInterface
[connect] :: DriverInterface -> forall m a. MonadIO m => [(String, String)] -> (Database -> m a) -> m a
[requiredOptions] :: DriverInterface -> [(String, String)]

-- | Monads in which IO computations may be embedded. Any monad
--   built by applying a sequence of monad transformers to the IO
--   monad will be an instance of this class.
--   
--   Instances should satisfy the following laws, which state that
--   liftIO is a transformer of monads:
--   
--   
--   
- 
liftIO . return = return

--   
- 
liftIO (m >>= f) = liftIO m >>=
--   (liftIO . f)

--   
class Monad m => MonadIO (m :: * -> *)

-- | Default dummy driver, real drivers should overload this
defaultdriver :: DriverInterface

-- | Can be used by drivers to get option values from the given list of
--   name, value pairs.
getOptions :: Monad m => [String] -> [(String, String)] -> m [String]

-- | Can be used by drivers to get option values from the given list of
--   name, value pairs. It is intended for use with the
--   requiredOptions value of the driver.
getAnnotatedOptions :: Monad m => [(String, String)] -> [(String, String)] -> m [String]

-- | Gets an SqlGenerator from the "generator" option in the given
--   list. Currently available generators: "mysql", "postgresql", "sqlite",
--   "default"
getGenerator :: Monad m => [(String, String)] -> m SqlGenerator

-- | HaskellDB is a Haskell library for expressing database queries and
--   operations in a type safe and declarative way. HaskellDB compiles a
--   relational algebra-like syntax into SQL, submits the operations to the
--   database for processing, and returns the results as ordinary Haskell
--   values.
--   
--   This is the main module that the user should import. Beside this
--   module, the user should import a particular database binding (ie.
--   Database.HaskellDB.HSQL.ODBC) and database definitions.
--   
--   HaskellDB was originally written by Daan Leijen and it's design is
--   described in the paper Domain Specific Embedded Compilers, Daan Leijen
--   and Erik Meijer. 2nd USENIX Conference on Domain-Specific Languages
--   (DSL), Austin, USA, October 1999
--   (http://www.usenix.org/events/dsl99/).
--   
--   This new version of HaskellDB was produced as a student project at
--   Chalmers University of Technology in Gothenburg, Sweden. The aim of
--   the project was to make HaskellDB a practically useful database
--   library. That work is described in Student Paper: HaskellDB Improved,
--   Björn Bringert, Anders Höckersten, Conny Andersson, Martin Andersson,
--   Mary Bergman, Victor Blomqvist and Torbjörn Martin. In Proceedings of
--   the ACM SIGPLAN 2004 Haskell Workshop, Snowbird, Utah, USA, September
--   22, 2004. (http://haskelldb.sourceforge.net/haskelldb.pdf)
module Database.HaskellDB

-- | Type of relations, contains the attributes of the relation and an
--   Alias to which the attributes are renamed in the
--   PrimQuery.
data Rel r

-- | Typed attributes
data Attr f a

-- | Type of normal expressions, contains the untyped PrimExpr.
data Expr a

-- | Type of aggregate expressions.
data ExprAggr a

-- | Basic tables, contains table name and an association from attributes
--   to attribute names in the real table.
data Table r
data Query a
data OrderExpr

-- | The record r has the field f if there is an instance
--   of HasField f r.
class HasField f r

-- | The type used for records. This is a function that takes a
--   RecNil so that the user does not have to put a RecNil at
--   the end of every record.
type Record r = RecNil -> r
class Select f r a | f r -> a

-- | Field selection operator. It is overloaded so that users (read
--   HaskellDB) can redefine it for things with phantom record types.
(!) :: Select f r a => r -> f -> a

-- | Adds the field from a one-field record to another record.
(#) :: Record (RecCons f a RecNil) -> (b -> c) -> (b -> RecCons f a c)

-- | Creates a record field. Similar to '(.=.)', but gets the field label
--   from an Attr.
(<<) :: Attr f a -> e a -> Record (RecCons f (e a) RecNil)

-- | Convenience operator for constructing records of constants. Useful
--   primarily with insert. f <<- x is the same as
--   f << constant x
(<<-) :: ShowConstant a => Attr f a -> a -> Record (RecCons f (Expr a) RecNil)

-- | The (!.) operator selects over returned records from the database (=
--   rows) Non-overloaded version of !. For backwards compatibility.
(!.) :: Select f r a => r -> f -> a

-- | Restricts the records to only those who evaluates the expression to
--   True.
restrict :: Expr Bool -> Query ()

-- | Return all records from a specific table.
table :: (ShowRecRow r) => Table r -> Query (Rel r)

-- | Specifies a subset of the columns in the table.
project :: (ShowLabels r, ToPrimExprs r, ProjectRec r er) => Record r -> Query (Rel er)

-- | Restricts the relation given to only return unique records. Upshot is
--   all projected attributes will be grouped.
unique :: Query ()

-- | Return all records which are present in at least one of the relations.
union :: Query (Rel r) -> Query (Rel r) -> Query (Rel r)

-- | Return all records which are present in both relations.
intersect :: Query (Rel r) -> Query (Rel r) -> Query (Rel r)

-- | Not in SQL92.
divide :: Query (Rel r) -> Query (Rel r) -> Query (Rel r)

-- | Return all records from the first relation that are not present in the
--   second relation.
minus :: Query (Rel r) -> Query (Rel r) -> Query (Rel r)

-- | Creates a single-field record from an attribute and a table. Useful
--   for building projections that will re-use the same attribute name.
--   copy attr tbl is equivalent to:
--   
--   
--   attr .=. (tbl .!. attr)
--   
copy :: (HasField f r) => Attr f a -> Rel r -> Record (RecCons f (Expr a) RecNil)

-- | Copies all columns in the relation given. Useful for appending the
--   remaining columns in a table to a projection. For example:
--   
--   
--   query = do
--     tbl <- table some_table
--     project $ copyAll tbl
--   
--   
--   will add all columns in "some_table" to the query.
copyAll :: (RelToRec r) => Rel r -> Record r

-- | Allows a subquery to be created between another query and this query.
--   Normally query definition is associative and query definition is
--   interleaved. This combinator ensures the given query is added as a
--   whole piece.
subQuery :: Query (Rel r) -> Query (Rel r)

-- | Equality comparison on Exprs, = in SQL.
(.==.) :: Eq a => Expr a -> Expr a -> Expr Bool

-- | Inequality on Exprs, <> in SQL.
(.<>.) :: Eq a => Expr a -> Expr a -> Expr Bool
(.<.) :: Ord a => Expr a -> Expr a -> Expr Bool
(.<=.) :: Ord a => Expr a -> Expr a -> Expr Bool
(.>.) :: Ord a => Expr a -> Expr a -> Expr Bool
(.>=.) :: Ord a => Expr a -> Expr a -> Expr Bool

-- | "Logical and" on Expr, AND in SQL.
(.&&.) :: Expr Bool -> Expr Bool -> Expr Bool

-- | "Logical or" on Expr. OR in SQL.
(.||.) :: Expr Bool -> Expr Bool -> Expr Bool

-- | Multiplication
(.*.) :: Num a => Expr a -> Expr a -> Expr a

-- | Division
(./.) :: Num a => Expr a -> Expr a -> Expr a

-- | Addition
(.+.) :: Num a => Expr a -> Expr a -> Expr a

-- | Subtraction
(.-.) :: Num a => Expr a -> Expr a -> Expr a

-- | Modulo
(.%.) :: Num a => Expr a -> Expr a -> Expr a

-- | Concatenates two String-expressions.
(.++.) :: Expr String -> Expr String -> Expr String

-- | The inverse of an Expr Bool.
_not :: Expr Bool -> Expr Bool

-- | The HaskellDB counterpart to the SQL LIKE keyword. In the expresions,
--   % is a wildcard representing any characters in the same position
--   relavtive to the given characters and _ is a wildcard representing one
--   character e.g.
--   
--   
--   like (constant "ABCDEFFF") (constant "AB%F_F")
--   
--   
--   is true while
--   
--   
--   like (constant "ABCDEF") (constant "AC%F") 
--   
--   
--   is false.
--   
--   Note that SQL92 does not specify whether LIKE is case-sensitive or
--   not. Different database systems implement this differently.
like :: Expr String -> Expr String -> Expr Bool

-- | Returns true if the value of the first operand is equal to the value
--   of any of the expressions in the list operand.
_in :: Eq a => Expr a -> [Expr a] -> Expr Bool

-- | Produces the concatenation of two String-expressions.
cat :: Expr String -> Expr String -> Expr String

-- | Gets the length of a string.
_length :: Expr String -> Expr Int

-- | Returns true if the expression is Null.
isNull :: Expr a -> Expr Bool

-- | The inverse of isNull, returns false if the expression supplied
--   is Null.
notNull :: Expr a -> Expr Bool

-- | Takes a default value a and a nullable value. If the value is NULL,
--   the default value is returned, otherwise the value itself is returned.
--   Simliar to fromMaybe
fromNull :: Expr a -> Expr (Maybe a) -> Expr a

-- | Similar to fromNull, but takes a value argument rather than an Expr.
fromVal :: ShowConstant a => a -> Expr (Maybe a) -> Expr a

-- | Creates a constant expression from a haskell value.
constant :: ShowConstant a => a -> Expr a

-- | Turn constant data into a nullable expression. Same as constant .
--   Just
constVal :: ShowConstant a => a -> Expr (Maybe a)

-- | Represents a null value.
constNull :: Expr (Maybe a)

-- | Turn constant data into a nullable expression. Same as constant .
--   Just
constExpr :: Expr a -> Expr (Maybe a)

-- | Create an anonymous parameter with a default value.
param :: Expr a -> Expr a

-- | Create a named parameter with a default value.
namedParam :: Name -> Expr a -> Expr a

-- | Used to implement variable length arguments to func, below.
class Args a

-- | Can be used to define SQL functions which will appear in queries. Each
--   argument for the function is specified by its own Expr value. Examples
--   include:
--   
--   
--   lower :: Expr a -> Expr (Maybe String) 
--   lower str = func "lower" str
--   
--   
--   The arguments to the function do not have to be Expr if they can be
--   converted to Expr:
--   
--   
--   data DatePart = Day | Century deriving Show 
--   
--   
--   
--   datePart :: DatePart -> Expr (Maybe CalendarTime) -> Expr (Maybe Int) 
--   datePart date col = func "date_part" (constant $ show date) col
--   
--   
--   Aggregate functions can also be defined. For example:
--   
--   
--   every :: Expr Bool -> ExprAggr Bool 
--   every col = func "every" col
--   
--   
--   Aggregates are implemented to always take one argument, so any attempt
--   to define an aggregate with any more or less arguments will result in
--   an error.
--   
--   Note that type signatures are usually required for each function
--   defined, unless the arguments can be inferred.
func :: (Args a) => String -> a

-- | Get paramaters from a query in order.
queryParams :: Query (Rel r) -> [Param]

-- | Represents a query parameter. Left parameters are indexed by position,
--   while right parameters are named.
type Param = Either Int String

-- | Generates a CAST expression for the given expression, using
--   the argument given as the destination type.
cast :: String -> Expr a -> Expr b

-- | Coerce the type of an expression to another type. Does not affect the
--   actual primitive value - only the phantom type.
coerce :: Expr a -> Expr b

-- | Inserts the string literally - no escaping, no quoting.
literal :: String -> Expr a

-- | Convert a bounded string to a real string.
toStr :: BStrToStr s d => s -> d

-- | Returns the number of records (=rows) in a query.
count :: Expr a -> ExprAggr Int

-- | Returns the total sum of a column.
_sum :: Num a => Expr a -> ExprAggr a

-- | Returns the highest value of a column.
_max :: Ord a => Expr a -> ExprAggr a

-- | Returns the lowest value of a column.
_min :: Ord a => Expr a -> ExprAggr a

-- | Returns the average of a column.
avg :: Num a => Expr a -> ExprAggr a

-- | Returns the standard deviation of a column.
stddev :: Num a => Expr a -> ExprAggr a
stddevP :: Num a => Expr a -> ExprAggr a

-- | Returns the standard variance of a column.
variance :: Num a => Expr a -> ExprAggr a
varianceP :: Num a => Expr a -> ExprAggr a

-- | Use this together with the function order to order the results
--   of a query in ascending order. Takes a relation and an attribute of
--   that relation, which is used for the ordering.
asc :: HasField f r => Rel r -> Attr f a -> OrderExpr

-- | Use this together with the function order to order the results
--   of a query in descending order. Takes a relation and an attribute of
--   that relation, which is used for the ordering.
desc :: (HasField f r) => Rel r -> Attr f a -> OrderExpr

-- | Order the results of a query. Use this with the asc or
--   desc functions.
order :: [OrderExpr] -> Query ()

-- | Return the n topmost records.
top :: Int -> Query ()

-- | Skip the n topmost records.
offset :: Int -> Query ()

-- | Creates a conditional expression. Returns the value of the expression
--   corresponding to the first true condition. If none of the conditions
--   are true, the value of the else-expression is returned.
_case :: [(Expr Bool, Expr a)] -> Expr a -> Expr a

-- | The default value of the column. Only works with insert.
_default :: ExprDefault a
data Database

-- | performs a query on a database
query :: GetRec er vr => Database -> Query (Rel er) -> IO [Record vr]

-- | Concatenates two records.
recCat :: RecCat r1 r2 r3 => r1 -> r2 -> r3

-- | Inserts a record into a table
insert :: (ToPrimExprs r, ShowRecRow r, InsertRec r er) => Database -> Table er -> Record r -> IO ()

-- | deletes a bunch of records
delete :: ShowRecRow r => Database -> Table r -> (Rel r -> Expr Bool) -> IO ()

-- | Updates records
update :: (ShowLabels s, ToPrimExprs s) => Database -> Table r -> (Rel r -> Expr Bool) -> (Rel r -> Record s) -> IO ()

-- | Inserts values from a query into a table
insertQuery :: ShowRecRow r => Database -> Table r -> Query (Rel r) -> IO ()

-- | List all tables in the database
tables :: Database -> IO [TableName]

-- | List all columns in a table, along with their types
describe :: Database -> TableName -> IO [(Attribute, FieldDesc)]

-- | Performs some database action in a transaction. If no exception is
--   thrown, the changes are committed.
transaction :: Database -> IO a -> IO a

-- | Shows the optimized PrimQuery.
showQuery :: Query (Rel r) -> String

-- | Shows the unoptimized PrimQuery.
showQueryUnOpt :: Query (Rel r) -> String

-- | Shows the optimized SQL query.
showSql :: Query (Rel r) -> String

-- | Shows the unoptimized SQL query.
showSqlUnOpt :: Query (Rel r) -> String
instance GHC.Show.Show (Database.HaskellDB.Query.Query (Database.HaskellDB.Query.Rel r))

-- | DBDirect generates a Haskell module from a database. It first reads
--   the system catalog of the database into a Catalog data type.
--   After that it pretty prints that data structure in an appropiate
--   Haskell module which can be used to perform queries on the database.
module Database.HaskellDB.DBDirect
dbdirect :: DriverInterface -> IO ()
