on dev help sign in
Revert "start on constraints"

This reverts commit 15ea7767b0e20e4811781cf10754879f5a1157cb.

commit29b120677b68c3118d92b6973f7d18f77d4873a5 authorEitan Chatav <eitan.chatav@gmail.com> dateSun 5 Nov 2017, 13:24 (9 years ago) parent15ea776
3 files changed−14
squeal-postgresql/squeal-postgresql.cabal−1 squeal-postgresql/src/Squeal/PostgreSQL/Schema.hs−11 stack.yaml−2
squeal-postgresql/squeal-postgresql.cabal−1
@@ -49,7 +49,6 @@ library
4949 , time >= 1.8.0.2 && < 2
5050 , transformers >= 0.5.2.0 && < 1
5151 , transformers-base >= 0.4.4 && < 1
52− , type-level-sets
5352 , uuid >= 1.3.13 && < 2
5453
5554test-suite squeal-postgresql-spec
squeal-postgresql/src/Squeal/PostgreSQL/Schema.hs−11
@@ -68,16 +68,12 @@ module Squeal.PostgreSQL.Schema
6868 -- * Generics
6969 , SameField
7070 , SameFields
71− -- * PostgreSQL Constraints
72− , (:=>)
73− , ColumnConstraint (..)
7471 ) where
7572
7673import Control.DeepSeq
7774import Data.ByteString
7875import Data.Monoid
7976import Data.String
80−import Data.Type.Set
8177import Generics.SOP (AllZip)
8278import GHC.Generics (Generic)
8379import GHC.Exts
@@ -326,10 +322,3 @@ type family SameFields
326322 ('Type.Newtype _module _datatype ('Type.Record _constructor fields))
327323 columns
328324 = AllZip SameField fields columns
329−
330−type (:=>) constraints ty = '(AsSet constraints,ty)
331−
332−data ColumnConstraint
333− = Default
334− | Unique
335− | References Symbol Symbol
stack.yaml−2
@@ -1,5 +1,3 @@
11resolver: nightly-2017-08-25
22packages:
33- squeal-postgresql
4−extra-deps:
5−- type-level-sets-0.8.0.0