1+ module Gen.ArticleId exposing
2+ ( moduleName_, encode, decode, parse, toString, annotation_
3+ , call_, values_
4+ )
5+
6+ {- |
7+ # Generated bindings for ArticleId
8+
9+ @docs moduleName_, encode, decode, parse, toString, annotation_
10+ @docs call_, values_
11+ -}
12+
13+
14+ import Elm
15+ import Elm.Annotation as Type
16+
17+
18+ {- | The name of this module. -}
19+ moduleName_ : List String
20+ moduleName_ =
21+ [ " ArticleId" ]
22+
23+
24+ {- | encode: ArticleId.ArticleId -> Json.Encode.Value -}
25+ encode : Elm .Expression -> Elm .Expression
26+ encode encodeArg_ =
27+ Elm . apply
28+ ( Elm . value
29+ { importFrom = [ " ArticleId" ]
30+ , name = " encode"
31+ , annotation =
32+ Just
33+ ( Type . function
34+ [ Type . namedWith [ " ArticleId" ] " ArticleId" [] ]
35+ ( Type . namedWith [ " Json" , " Encode" ] " Value" [] )
36+ )
37+ }
38+ )
39+ [ encodeArg_ ]
40+
41+
42+ {- | decode: Json.Decode.Decoder ArticleId.ArticleId -}
43+ decode : Elm .Expression
44+ decode =
45+ Elm . value
46+ { importFrom = [ " ArticleId" ]
47+ , name = " decode"
48+ , annotation =
49+ Just
50+ ( Type . namedWith
51+ [ " Json" , " Decode" ]
52+ " Decoder"
53+ [ Type . namedWith [ " ArticleId" ] " ArticleId" [] ]
54+ )
55+ }
56+
57+
58+ {- | parse: String -> Result.Result String ArticleId.ArticleId -}
59+ parse : String -> Elm .Expression
60+ parse parseArg_ =
61+ Elm . apply
62+ ( Elm . value
63+ { importFrom = [ " ArticleId" ]
64+ , name = " parse"
65+ , annotation =
66+ Just
67+ ( Type . function
68+ [ Type . string ]
69+ ( Type . namedWith
70+ [ " Result" ]
71+ " Result"
72+ [ Type . string
73+ , Type . namedWith [ " ArticleId" ] " ArticleId" []
74+ ]
75+ )
76+ )
77+ }
78+ )
79+ [ Elm . string parseArg_ ]
80+
81+
82+ {- | toString: ArticleId.ArticleId -> String -}
83+ toString : Elm .Expression -> Elm .Expression
84+ toString toStringArg_ =
85+ Elm . apply
86+ ( Elm . value
87+ { importFrom = [ " ArticleId" ]
88+ , name = " toString"
89+ , annotation =
90+ Just
91+ ( Type . function
92+ [ Type . namedWith [ " ArticleId" ] " ArticleId" [] ]
93+ Type . string
94+ )
95+ }
96+ )
97+ [ toStringArg_ ]
98+
99+
100+ annotation_ : { articleId : Type .Annotation }
101+ annotation_ =
102+ { articleId = Type . namedWith [ " ArticleId" ] " ArticleId" [] }
103+
104+
105+ call_ :
106+ { encode : Elm . Expression -> Elm . Expression
107+ , parse : Elm . Expression -> Elm . Expression
108+ , toString : Elm . Expression -> Elm . Expression
109+ }
110+ call_ =
111+ { encode =
112+ \ encodeArg_ ->
113+ Elm . apply
114+ ( Elm . value
115+ { importFrom = [ " ArticleId" ]
116+ , name = " encode"
117+ , annotation =
118+ Just
119+ ( Type . function
120+ [ Type . namedWith
121+ [ " ArticleId" ]
122+ " ArticleId"
123+ []
124+ ]
125+ ( Type . namedWith
126+ [ " Json" , " Encode" ]
127+ " Value"
128+ []
129+ )
130+ )
131+ }
132+ )
133+ [ encodeArg_ ]
134+ , parse =
135+ \ parseArg_ ->
136+ Elm . apply
137+ ( Elm . value
138+ { importFrom = [ " ArticleId" ]
139+ , name = " parse"
140+ , annotation =
141+ Just
142+ ( Type . function
143+ [ Type . string ]
144+ ( Type . namedWith
145+ [ " Result" ]
146+ " Result"
147+ [ Type . string
148+ , Type . namedWith
149+ [ " ArticleId" ]
150+ " ArticleId"
151+ []
152+ ]
153+ )
154+ )
155+ }
156+ )
157+ [ parseArg_ ]
158+ , toString =
159+ \ toStringArg_ ->
160+ Elm . apply
161+ ( Elm . value
162+ { importFrom = [ " ArticleId" ]
163+ , name = " toString"
164+ , annotation =
165+ Just
166+ ( Type . function
167+ [ Type . namedWith
168+ [ " ArticleId" ]
169+ " ArticleId"
170+ []
171+ ]
172+ Type . string
173+ )
174+ }
175+ )
176+ [ toStringArg_ ]
177+ }
178+
179+
180+ values_ :
181+ { encode : Elm . Expression
182+ , decode : Elm . Expression
183+ , parse : Elm . Expression
184+ , toString : Elm . Expression
185+ }
186+ values_ =
187+ { encode =
188+ Elm . value
189+ { importFrom = [ " ArticleId" ]
190+ , name = " encode"
191+ , annotation =
192+ Just
193+ ( Type . function
194+ [ Type . namedWith [ " ArticleId" ] " ArticleId" [] ]
195+ ( Type . namedWith [ " Json" , " Encode" ] " Value" [] )
196+ )
197+ }
198+ , decode =
199+ Elm . value
200+ { importFrom = [ " ArticleId" ]
201+ , name = " decode"
202+ , annotation =
203+ Just
204+ ( Type . namedWith
205+ [ " Json" , " Decode" ]
206+ " Decoder"
207+ [ Type . namedWith [ " ArticleId" ] " ArticleId" [] ]
208+ )
209+ }
210+ , parse =
211+ Elm . value
212+ { importFrom = [ " ArticleId" ]
213+ , name = " parse"
214+ , annotation =
215+ Just
216+ ( Type . function
217+ [ Type . string ]
218+ ( Type . namedWith
219+ [ " Result" ]
220+ " Result"
221+ [ Type . string
222+ , Type . namedWith [ " ArticleId" ] " ArticleId" []
223+ ]
224+ )
225+ )
226+ }
227+ , toString =
228+ Elm . value
229+ { importFrom = [ " ArticleId" ]
230+ , name = " toString"
231+ , annotation =
232+ Just
233+ ( Type . function
234+ [ Type . namedWith [ " ArticleId" ] " ArticleId" [] ]
235+ Type . string
236+ )
237+ }
238+ }
0 commit comments