Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
Instances
MatchViewPaths viewType table ('[] :: [FieldPath]) avail ('Nothing :: Maybe ErrorMessage) Source # | |
Defined in Sqel.Class.MatchView | |
(MatchViewPath vfield avail match, CheckViewPathError viewType table vfield vfields avail (CheckMatch viewType table vfield avail match) finalError) => MatchViewPaths viewType table (vfield ': vfields) avail finalError Source # | |
Defined in Sqel.Class.MatchView | |
MatchViewPath view ('[] :: [FieldPath]) 'False Source # | |
Defined in Sqel.Class.MatchView | |
(MatchPath view tfield match, CheckPathMatch view tfields match finalMatch) => MatchViewPath view (tfield ': tfields) finalMatch Source # | |
Defined in Sqel.Class.MatchView |
type family FieldPathPrim prefix sel t where ... Source #
FieldPathPrim prefix ('SelSymbol name) t = '['FieldPath (prefix ++ '[name]) t] | |
FieldPathPrim _ ('SelPath path) t = '['FieldPath path t] | |
FieldPathPrim _ 'SelUnused _ = '[] | |
FieldPathPrim _ ('SelIndex _ _) _ = '[] | |
FieldPathPrim _ 'SelAuto t = TypeError (("Internal error: A field with type " <> t) <> " was not automatically renamed.") |
type family FieldPathsComp prefix name c i t sub where ... Source #
FieldPathsComp prefix _ _ 'Merge _ sub = FieldPathsProd prefix sub | |
FieldPathsComp prefix ('SelSymbol name) 'Sum _ _ (_ ': sub) = FieldPathsProd (prefix ++ '[name]) sub | |
FieldPathsComp prefix ('SelSymbol name) _ _ _ sub = FieldPathsProd (prefix ++ '[name]) sub | |
FieldPathsComp _ 'SelAuto _ _ t _ = TypeError (("Internal error: A composite column with type " <> QuotedType t) <> " was not automatically renamed.") |
type family FieldPathsSub prefix s where ... Source #
FieldPathsSub prefix ('DdK sel _ t 'Prim) = FieldPathPrim prefix sel t | |
FieldPathsSub prefix ('DdK sel _ t ('Comp _ c i d)) = FieldPathsComp prefix sel c i t d | |
FieldPathsSub _ s = TypeError ("FieldPathsSub: " <> s) |
type family FieldPathsProd prefix s where ... Source #
FieldPathsProd _ '[] = '[] | |
FieldPathsProd prefix (s ': ss) = FieldPathsSub prefix s ++ FieldPathsProd prefix ss | |
FieldPathsProd _ s = TypeError ("FieldPathsProd: " <> s) |
type family FieldPaths s where ... Source #
FieldPaths ('DdK ('SelSymbol name) _ t 'Prim) = '['FieldPath '[name] t] | |
FieldPaths ('DdK _ _ _ ('Comp _ _ _ sub)) = FieldPathsProd '[] sub | |
FieldPaths s = TypeError ("FieldPaths: " <> s) |
type family ShowField (field :: FieldPath) :: ErrorMessage where ... Source #
type family ShowFields (fields :: [FieldPath]) :: [ErrorMessage] where ... Source #
ShowFields '[] = '[] | |
ShowFields (field ': fields) = ShowField field ': ShowFields fields |
class PrintFields (s :: DdK) where Source #
Nothing
printFields :: Dd s -> () Source #
Instances
(TypeError (Unlines (ShowFields (FieldPaths s)) % s) :: Constraint) => PrintFields s Source # | |
Defined in Sqel.Data.FieldPath printFields :: Dd s -> () Source # |