@@ -38,14 +38,14 @@ newtype PathSegment = PathSegment { unPathSegment :: Text }
3838makePrisms ''PathSegment
3939
4040data Arg = Arg
41− { _aName :: PathSegment
42− , _aType :: ForeignType }
41+ { _argName :: PathSegment
42+ , _argType :: ForeignType }
4343 deriving (Show, Eq)
4444
4545makeLenses ''Arg
4646
47−aPath :: Getter Arg Text
48−aPath = aName . _PathSegment
47+argPath :: Getter Arg Text
48+argPath = argName . _PathSegment
4949
5050data SegmentType
5151 = Static PathSegment
@@ -80,8 +80,8 @@ data ArgType
8080makePrisms ''ArgType
8181
8282data QueryArg = QueryArg
83− { _argName :: Arg
84− , _argType :: ArgType
83+ { _queryArgName :: Arg
84+ , _queryArgType :: ArgType
8585 } deriving (Eq, Show)
8686
8787makeLenses ''QueryArg
@@ -194,8 +194,8 @@ instance (KnownSymbol sym, HasForeignType lang ftype, HasForeign lang sublayout)
194194 str = pack . symbolVal $ (Proxy :: Proxy sym)
195195 ftype = typeFor lang (Proxy :: Proxy ftype)
196196 arg = Arg
197− { _aName = PathSegment str
198− , _aType = ftype }
197+ { _argName = PathSegment str
198+ , _argType = ftype }
199199
200200instance (Elem JSON list, HasForeignType lang a, ReflectMethod method)
201201 => HasForeign lang (Verb method status list a) where
@@ -219,8 +219,8 @@ instance (KnownSymbol sym, HasForeignType lang a, HasForeign lang sublayout)
219219 where
220220 hname = pack . symbolVal $ (Proxy :: Proxy sym)
221221 arg = Arg
222− { _aName = PathSegment hname
223− , _aType = typeFor lang (Proxy :: Proxy a) }
222+ { _argName = PathSegment hname
223+ , _argType = typeFor lang (Proxy :: Proxy a) }
224224 subP = Proxy :: Proxy sublayout
225225
226226instance (KnownSymbol sym, HasForeignType lang a, HasForeign lang sublayout)
@@ -233,8 +233,8 @@ instance (KnownSymbol sym, HasForeignType lang a, HasForeign lang sublayout)
233233 where
234234 str = pack . symbolVal $ (Proxy :: Proxy sym)
235235 arg = Arg
236− { _aName = PathSegment str
237− , _aType = typeFor lang (Proxy :: Proxy a) }
236+ { _argName = PathSegment str
237+ , _argType = typeFor lang (Proxy :: Proxy a) }
238238
239239instance
240240 (KnownSymbol sym, HasForeignType lang [a], HasForeign lang sublayout)
@@ -246,8 +246,8 @@ instance
246246 where
247247 str = pack . symbolVal $ (Proxy :: Proxy sym)
248248 arg = Arg
249− { _aName = PathSegment str
250− , _aType = typeFor lang (Proxy :: Proxy [a]) }
249+ { _argName = PathSegment str
250+ , _argType = typeFor lang (Proxy :: Proxy [a]) }
251251
252252instance
253253 (KnownSymbol sym, HasForeignType lang Bool, HasForeign lang sublayout)
@@ -260,8 +260,8 @@ instance
260260 where
261261 str = pack . symbolVal $ (Proxy :: Proxy sym)
262262 arg = Arg
263− { _aName = PathSegment str
264− , _aType = typeFor lang (Proxy :: Proxy Bool) }
263+ { _argName = PathSegment str
264+ , _argType = typeFor lang (Proxy :: Proxy Bool) }
265265
266266instance HasForeign lang Raw where
267267 type Foreign Raw = HTTP.Method -> Req