@@ -1,6 +1,6 @@
1## RELEASE NOTES
1## RELEASE NOTES
3−### Version 0.3.0.0 - June 23, 2018
3+### Version 0.3 - June 23, 2018
5Version 0.3 of Squeal adds views as well as composite and enumerated types to Squeal.
5Version 0.3 of Squeal adds views as well as composite and enumerated types to Squeal.
6To support these features, a new kind `SchemumType` was added.
6To support these features, a new kind `SchemumType` was added.
@@ -89,6 +89,30 @@ in printSQL query
89SELECT * FROM "bc" AS "bc"
89SELECT * FROM "bc" AS "bc"
94+PostgreSQL has a powerful type system. It even allows for user defined types.
95+For instance, you can define enumerated types which are data types that comprise
96+a static, ordered set of values. An example of an enum type might be the days of the week,
97+or a set of status values for a piece of data.
99+Enumerated types are created using the `createTypeEnum` command, for example
102+>>> printSQL $ createTypeEnum #mood (label @"sad" :* label @"ok" :* label @"happy" :* Nil)
103+CREATE TYPE "mood" AS ENUM ('sad', 'ok', 'happy');
106+Enumerated types can also be generated from a Haskell type, for example
109+>>> data Schwarma = Beef | Lamb | Chicken deriving GHC.Generic
110+>>> instance SOP.Generic Schwarma
111+>>> instance SOP.HasDatatypeInfo Schwarma
112+>>> printSQL $ createTypeEnumFrom @Schwarma #schwarma
113+CREATE TYPE "schwarma" AS ENUM ('Beef', 'Lamb', 'Chicken');
92### Version 0.2.1 - April 7, 2018
116### Version 0.2.1 - April 7, 2018
94This minor update fixes an issue where alias identifiers could conflict with
118This minor update fixes an issue where alias identifiers could conflict with