on dev help sign in
renderSQL for Alias
commitddeb75d369ce226762e40f8f1783c2641f600ad7 authorEitan Chatav <eitan.chatav@gmail.com> dateThu 21 Jun 2018, 17:47 (8 years ago) parentda4f6c6
1 file changed+1
squeal-postgresql/src/Squeal/PostgreSQL/Schema.hs+1
squeal-postgresql/src/Squeal/PostgreSQL/Schema.hs+1
@@ -365,6 +365,7 @@ instance alias1 ~ alias2 => IsLabel alias1 (Alias alias2) where
365365 fromLabel = Alias
366366instance aliases ~ '[alias] => IsLabel alias (NP Alias aliases) where
367367 fromLabel = fromLabel :* Nil
368+instance KnownSymbol alias => RenderSQL (Alias alias) where renderSQL = renderAlias
368369
369370-- | >>> renderAlias #jimbob
370371-- "\"jimbob\""