summaryrefslogtreecommitdiff
path: root/templates/data.purs.ede
blob: ccaa7de109eb16b546de02009c09c25b7e8f1ff0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
-- generated file, do not modify!
-- {{ dateTime }}

module {{ moduleName }} where

{% for t in definitions %}
data {{ t.value.dataName }}{% for c in t.value.constructors %}
{% if c.value.fields | hasFieldNames %}
  {% if c.first %}={% else %}|{% endif %} {{ c.value.name }}
{% for f in c.value.fields %}{% if f.first %}  { {%else%}  , {%endif%}{{ f.value.fieldName }} :: {{ f.value.fieldType | psType }}
{% endfor %}
  }
{% else %}
  {% if c.first %}={% else %}|{% endif %} {{ c.value.name }}{% for f in c.value.fields %} {{ f.value.fieldType | psType | parens }}{% endfor %}{% endif %}{% endfor %}

{% endfor %}