Skip to content

Commit 776f221

Browse files
committed
fixup! First iteration of tree api
1 parent 477fcd8 commit 776f221

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

primer/src/Primer/API.hs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -299,16 +299,18 @@ data APIProg = APIProg
299299

300300
instance ToJSON APIProg
301301

302+
-- | This type is the api's view of a 'Def'
303+
-- (this is expected to evolve as we flesh out the API)
302304
data APIDef = APIDef
303305
{ id :: ID
304306
, name :: Name
305307
, _type :: Tree
306308
, term :: Tree
307-
-- type and term: REVIEW: naming, what is the openapi.json like (esp _type),
308-
-- should I force it to inline? (iirc, 'type' is a keyword both in Haskell
309-
-- and TypeScript)
309+
-- type and term: REVIEW: naming
310+
-- (iirc, 'type' is a keyword both in Haskell and TypeScript)
310311
}
311312
deriving (Generic)
313+
312314
instance ToJSON APIDef
313315

314316
viewProg :: Prog -> APIProg

0 commit comments

Comments
 (0)