Experimental: fewer quotes

This commit is contained in:
Gregor Kleen 2018-09-06 15:20:57 +02:00
parent fadd7c4d88
commit 3bfae5d3c6

View File

@ -157,7 +157,7 @@ customMigrations = Map.fromListWith (>>)
tableExists :: MonadIO m => Text -> ReaderT SqlBackend m Bool
tableExists table = do
haveSchoolTable <- [sqlQQ| SELECT to_regclass("#{table}"); |]
haveSchoolTable <- [sqlQQ| SELECT to_regclass(#{table}); |]
case haveSchoolTable :: [Maybe (Single Text)] of
[Just _] -> return True
_other -> return False