We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 477fcd8 commit 776f221Copy full SHA for 776f221
primer/src/Primer/API.hs
@@ -299,16 +299,18 @@ data APIProg = APIProg
299
300
instance ToJSON APIProg
301
302
+-- | This type is the api's view of a 'Def'
303
+-- (this is expected to evolve as we flesh out the API)
304
data APIDef = APIDef
305
{ id :: ID
306
, name :: Name
307
, _type :: Tree
308
, term :: Tree
- -- type and term: REVIEW: naming, what is the openapi.json like (esp _type),
- -- should I force it to inline? (iirc, 'type' is a keyword both in Haskell
309
- -- and TypeScript)
+ -- type and term: REVIEW: naming
310
+ -- (iirc, 'type' is a keyword both in Haskell and TypeScript)
311
}
312
deriving (Generic)
313
+
314
instance ToJSON APIDef
315
316
viewProg :: Prog -> APIProg
0 commit comments