mirror of
https://github.com/khibino/haskell-relational-record.git
synced 2024-12-12 12:09:08 +03:00
Formatting.
This commit is contained in:
parent
6223573b72
commit
87395e5981
@ -143,10 +143,10 @@ inlineQuery relVar' rel qVar' = do
|
||||
case relInfo of
|
||||
VarI _ (AppT (AppT (ConT prn) p) r) _ _
|
||||
| prn == ''PrimeRelation -> do
|
||||
sig <- sigD qVar [t| Query $(return p) $(return r) |]
|
||||
var <- valD (varP qVar)
|
||||
(normalB [| unsafeTypedQuery $(stringE . toSQL $ rel) |])
|
||||
[]
|
||||
return [sig, var]
|
||||
sig <- sigD qVar [t| Query $(return p) $(return r) |]
|
||||
var <- valD (varP qVar)
|
||||
(normalB [| unsafeTypedQuery $(stringE . toSQL $ rel) |])
|
||||
[]
|
||||
return [sig, var]
|
||||
_ ->
|
||||
compileError $ "expandRelation: Variable must have PrimeRelation type: " ++ show relVar
|
||||
|
Loading…
Reference in New Issue
Block a user