Do GADT instead
This commit is contained in:
1 parent
4112ed2aeb
commit
9048581ea1
1 file changed
+4
-4
+4
-4
@@ -28,10 +28,10 @@ data Field a where
|
||||
Url :: Field String
|
||||
Title :: Field String
|
||||
|
||||
data QueryF f
|
||||
= forall a. StartsWith (Field a) a
|
||||
| forall a. EndsWith (Field a) a
|
||||
| And f f
|
||||
data QueryF f where
|
||||
StartsWith :: Field a -> a -> QueryF f
|
||||
EndsWith :: Field a -> a -> QueryF f
|
||||
And :: f -> f -> QueryF f
|
||||
|
||||
deriving instance Functor QueryF
|
||||
|
||||
|
||||
Reference in new issue
Block a user