We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b70a6f commit 8b39b00Copy full SHA for 8b39b00
src/Type/Data/Record.purs
@@ -0,0 +1,18 @@
1
+module Type.Data.Record
2
+ ( class RecordOf
3
+ ) where
4
+
5
+import Type.Row (class RowToList, Cons, Nil, kind RowList)
6
7
+class RecordOf record fieldType
8
+instance recordOf
9
+ :: ( RowToList record fields
10
+ , FieldOf fields fieldType
11
+ )
12
+ => RecordOf (Record record) fieldType
13
14
+class FieldOf (rowList :: RowList) fieldType
15
+instance fieldOfCons
16
+ :: (FieldOf tail fieldType)
17
+ => FieldOf (Cons symbol fieldType tail) fieldType
18
+instance fieldOfNil :: FieldOf Nil fieldType
0 commit comments