Formatting.

This commit is contained in:
Kei Hibino 2013-05-11 14:49:52 +09:00
parent 6223573b72
commit 87395e5981

View File

@ -143,10 +143,10 @@ inlineQuery relVar' rel qVar' = do
case relInfo of case relInfo of
VarI _ (AppT (AppT (ConT prn) p) r) _ _ VarI _ (AppT (AppT (ConT prn) p) r) _ _
| prn == ''PrimeRelation -> do | prn == ''PrimeRelation -> do
sig <- sigD qVar [t| Query $(return p) $(return r) |] sig <- sigD qVar [t| Query $(return p) $(return r) |]
var <- valD (varP qVar) var <- valD (varP qVar)
(normalB [| unsafeTypedQuery $(stringE . toSQL $ rel) |]) (normalB [| unsafeTypedQuery $(stringE . toSQL $ rel) |])
[] []
return [sig, var] return [sig, var]
_ -> _ ->
compileError $ "expandRelation: Variable must have PrimeRelation type: " ++ show relVar compileError $ "expandRelation: Variable must have PrimeRelation type: " ++ show relVar