git.iko.soy/typeable/postgresql-simple
on master help sign in
Implement mconcat for Query using B.concat
e4bf797Joey Adams
src/Database/PostgreSQL/Simple/Types.hs+1
@@ -80,6 +80,7 @@ instance Monoid Query where
80 mempty = Query B.empty
80 mempty = Query B.empty
81 mappend (Query a) (Query b) = Query (B.append a b)
81 mappend (Query a) (Query b) = Query (B.append a b)
82 {-# INLINE mappend #-}
82 {-# INLINE mappend #-}
83+ mconcat xs = Query (B.concat (map fromQuery xs))
83
84
84-- | A single-value \"collection\".
85-- | A single-value \"collection\".
85--
86--