Skip to content

Commit

Permalink
fixup! First iteration of tree api
Browse files Browse the repository at this point in the history
  • Loading branch information
brprice committed Oct 20, 2021
1 parent 477fcd8 commit 776f221
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions primer/src/Primer/API.hs
Original file line number Diff line number Diff line change
Expand Up @@ -299,16 +299,18 @@ data APIProg = APIProg

instance ToJSON APIProg

-- | This type is the api's view of a 'Def'
-- (this is expected to evolve as we flesh out the API)
data APIDef = APIDef
{ id :: ID
, name :: Name
, _type :: Tree
, 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
-- and TypeScript)
-- type and term: REVIEW: naming
-- (iirc, 'type' is a keyword both in Haskell and TypeScript)
}
deriving (Generic)

instance ToJSON APIDef

viewProg :: Prog -> APIProg
Expand Down

0 comments on commit 776f221

Please sign in to comment.