on master help sign in
doc: Mention generics when declaring TableSchemas (#58)
92f7c08Adam Bergmark
docs/tutorial.rst+9
@@ -147,6 +147,15 @@ And likewise for ``project`` and ``Project``::
147 }
147 }
148 }
148 }
149
149
150+There is also some generics machinery available if you want to grab the field information from your Rel8able type::
151+
152+ projectSchema :: TableSchema (Project Name)
153+ projectSchema = TableSchema
154+ { name = "project"
155+ , schema = Nothing
156+ , columns = namesFromLabels @(Project Name)
157+ }
158+
150
159
151.. note::
160.. note::
152
161