You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The types `Author`, `Reviewer`, `RichContent`, `Image`, `Gif`, and `List` have been declared as sum types in the LamdaBuffers schema using the `sum` keyword.
111
+
The types `Author`, `Reviewer`, and `RichContent` have been declared as sum types in the LamdaBuffers schema using the `sum` keyword.
137
112
138
113
As we can see, nothing too surprising here, all the `sum` types become `data`
139
114
in Haskell.
@@ -143,7 +118,7 @@ quote) to the defined constructor names as to make sure they are unique.
143
118
144
119
## Product types
145
120
146
-
The types`RichDocument`and `String`have been declared as product types in the
121
+
The type`RichDocument` have been declared as a product type in the
147
122
LamdaBuffers schema using the `prod` keyword.
148
123
149
124
They become Haskell `newtype` if they have a single type in their body, otherwise they are `data`.
@@ -161,4 +136,4 @@ type in their body, otherwise they are `data`.
161
136
Also like with product types, the constructor has the same name as the type.
162
137
163
138
The field names, similar to sum constructor names, are prepended with the
164
-
lowercased named of the type with a single quote (`'`) to maintain uniqueness.
139
+
lowercased name of the type with a single quote (`'`) to maintain uniqueness.
The types `Author`, `Reviewer`, `RichContent`, `Image`, `Gif`, and `List` have been declared as sum types in the LamdaBuffers schema using the `sum` keyword.
126
+
The types `Author`, `Reviewer`, and `RichContent` have been declared as sum types in the LamdaBuffers schema using the `sum` keyword.
166
127
167
128
As we can see, nothing too surprising here, all the `sum` types become `data`
168
129
in Purescript.
@@ -172,7 +133,7 @@ quote) to the defined constructor names as to make sure they are unique.
172
133
173
134
## Product types
174
135
175
-
The types`RichDocument`and `String`have been declared as product types in the
136
+
The type`RichDocument` have been declared as a product type in the
176
137
LamdaBuffers schema using the `prod` keyword.
177
138
178
139
They become Purescript `newtype` if they have a single type in their body, otherwise they are `data`.
0 commit comments