@@ -9,7 +9,8 @@ Squeal data definition language.
11{-# LANGUAGE
11{-# LANGUAGE
12− ConstraintKinds
13+ , ConstraintKinds
13 , DeriveGeneric
14 , DeriveGeneric
14 , FlexibleContexts
15 , FlexibleContexts
15 , FlexibleInstances
16 , FlexibleInstances
@@ -793,25 +794,14 @@ createTypeEnum enum labels = UnsafeDefinition $
795 ( SOP.IsEnumType hask
796 ( SOP.IsEnumType hask
796− , PGenumWith hask ~ 'PGenum labels
797+ , SOP.All KnownSymbol (PGenumWith hask)
797 ) => HasPGenum hask where
798 ) => HasPGenum hask where
798 createTypeEnumWith
799 createTypeEnumWith
799 :: KnownSymbol enum
800 :: KnownSymbol enum
800 => Alias enum
801 => Alias enum
801− -> Definition schema (Create enum ('Typedef (PGenumWith hask)) schema)
802+ -> Definition schema (Create enum ('Typedef ('PGenum (PGenumWith hask))) schema)
802 createTypeEnumWith enum = createTypeEnum enum
803 createTypeEnumWith enum = createTypeEnum enum
803− (SOP.hpure label :: NP PGlabel labels)
804+ (SOP.hpure label :: NP PGlabel (PGenumWith hask))
804−-- createTypeEnumWith
805−-- :: forall enum labels hask proxy schema
806−-- . ( KnownSymbol enum
807−-- , SOP.All KnownSymbol labels
808−-- , SOP.IsEnumType hask
809−-- , labels ~ DatatypeLabels (SOP.DatatypeInfoOf hask) )
812−-- -> Definition schema (Create enum ('Typedef ('PGenum labels)) schema)
813−-- createTypeEnumWith enum _ = createTypeEnum enum
814−-- (SOP.hpure label :: NP PGlabel labels)
816createType
806createType
817 :: (KnownSymbol comp, SOP.SListI fields)
807 :: (KnownSymbol comp, SOP.SListI fields)