on develop help sign in
gogol/gen/template/toc.ede
79 lines 1.7 kB history raw
1{-# LANGUAGE DataKinds #-}
2{-# LANGUAGE NoImplicitPrelude #-}
3{-# LANGUAGE TypeOperators #-}
5{-# OPTIONS_GHC -fno-warn-unused-imports #-}
6{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
8{% include "_include/license.ede" %}
9--
10-- {{ description | stripPrefix("-- | ") }}
11--
12-- /See:/ <{{ documentationLink }} {{ title }} Reference>
13module {{ moduleName }}
14 (
15 -- * Service Configuration
16 {{ api.url.name }}
17 {% for scope in api.scopes %}
18 {% if scope.first %}
20 -- * OAuth Scopes
21 {% endif %}
22 , {{ scope.value.name }}
23 {% endfor %}
25 -- * API Declaration
26 , {{ api.aliasName }}
27 {% for action in api.methods %}
28 {% if action.first %}
30 -- * Methods
31 {% endif %}
33 -- ** {{ action.value.id }}
34 , module {{ action.value.ns }}
35 {% endfor %}
36 {% for action in api.resources %}
37 {% if action.first %}
39 -- * Resources
40 {% endif %}
42 -- ** {{ action.value.id }}
43 , module {{ action.value.ns }}
44 {% endfor %}
46 -- * Types
47 {% for schema in schemas %}
48 {% case schema.value.type %}
49 {% when "prod" %}
51 -- ** {{ schema.value.name }}
52 , {{ schema.value.name }}
53 , {{ schema.value.ctor.name }}
54 {% for lens in schema.value.lenses %}
55 , {{ lens.value.name }}
56 {% endfor %}
57 {% when "sum" %}
59 -- ** {{ schema.value.name }}
60 , {{ schema.value.name }} (..)
61 {% endcase %}
62 {% endfor %}
63 ) where
65{% for import in moduleImports %}
66import {{ import.value }}
67{% endfor %}
68{% for module in exposedModules %}
69 {% if module.value != moduleName %}
70import {{ module.value }}
71 {% endif %}
72{% endfor %}
74{- $resources
75TODO
76-}
78-- | Represents the entirety of the methods and resources available for the {{ title }} service.
79{{ api.alias }}