on master help sign in
Expand on #58
commit269974e5cc790015907f3f563e7d2629aa8f738b authorOllie Charles <ollie@ocharles.org.uk> dateMon 21 Jun 2021, 11:35 (5 years ago) parent92f7c08
1 file changed+6−2
docs/tutorial.rst+6−2
docs/tutorial.rst+6−2
@@ -147,7 +147,8 @@ And likewise for ``project`` and ``Project``::
147147 }
148148 }
149149
150−There is also some generics machinery available if you want to grab the field information from your Rel8able type::
150+There is also some generics machinery available if you want to grab the field
151+information from your ``Rel8able`` type::
151152
152153 projectSchema :: TableSchema (Project Name)
153154 projectSchema = TableSchema
@@ -155,7 +156,10 @@ There is also some generics machinery available if you want to grab the field in
155156 , schema = Nothing
156157 , columns = namesFromLabels @(Project Name)
157158 }
158−
159+
160+This will create a ``TableSchema`` for ``Project`` where every column name
161+corresponds exactly to the name of the field. If you need more flexibility, you
162+can use ``namesFromLabelsWith``, which takes a transformation function.
159163
160164.. note::
161165