@@ -199,6 +199,44 @@ in printSQL expr
201Both composite and enum types can be automatically encoded from and decoded to their equivalent Haskell types.
201Both composite and enum types can be automatically encoded from and decoded to their equivalent Haskell types.
202+And they can be dropped.
207+ definition :: Definition '["mood" ::: 'Typedef ('PGenum '["sad", "ok", "happy"])] '[]
208+ definition = dropType #mood
210+>>> printSQL definition
214+**Additional Changes**
216+Squeal 0.3 also introduces a typeclass `HasAll` similar to `Has` but for a list of aliases.
217+This makes it possible to clean up some unfortunately messy Squeal 0.2 definitions.
221+>>> unique (Column #a :* Column #b :* Nil)
224+>>> unique (#a :* #b :* Nil)
227+Squeal 0.3 also adds `IsLabel` instances for `Aliased` expressions and tables as well as
228+heterogeneous lists, allowing for some more economy of code.
232+>>> select (#a `As` #a :* Nil) (from (table (#t `As` #t)))
235+>>> select #a (from (table #t))
238+The above changes required major and minor changes to Squeal DSL functions.
239+Please consult the documentation.
203### Version 0.2.1 - April 7, 2018
241### Version 0.2.1 - April 7, 2018