on dev help sign in
stuff

* remove export of `I` * add literal string instance for `Selection`

commit930637e13ead65283fd34b1667916839b95f8d1f authorEitan Chatav <eitan@Eitans-MacBook-Pro.local> dateThu 21 Feb 2019, 09:18 (8 years ago) parent897d850
2 files changed+4−1
squeal-postgresql/src/Squeal/PostgreSQL/Expression.hs−1 squeal-postgresql/src/Squeal/PostgreSQL/Query.hs+4
squeal-postgresql/src/Squeal/PostgreSQL/Expression.hs−1
@@ -196,7 +196,6 @@ module Squeal.PostgreSQL.Expression
196196 , (&)
197197 , NP (..)
198198 , (:*:) (..)
199− , I (..)
200199 , K (..)
201200 ) where
202201
squeal-postgresql/src/Squeal/PostgreSQL/Query.hs+4
@@ -468,6 +468,10 @@ instance RenderSQL (Selection outer grp commons schemas params from row) where
468468 in
469469 renderCommaSeparated renderOver winFns
470470
471+instance IsString
472+ (Selection outer grp commons schemas params from '["unI" ::: 'NotNull 'PGtext]) where
473+ fromString str = fromString str `as` #unI
474+
471475-- | the `TableExpression` in the `select` command constructs an intermediate
472476-- virtual table by possibly combining tables, views, eliminating rows,
473477-- grouping, etc. This table is finally passed on to processing by