1module Generate.JavaScript.Helpers where
4import Generate.JavaScript.Builder
11varDecl :: Text -> Expr -> VarDecl
13 VarDecl (Id x) (Just expr)
16refOrObject :: Text -> Expr
18 Infix OpLOr (ref name) (Object [])
30(==>) :: Text -> Expr -> (Prop, Expr)
32 ( IdProp (Id name), expr )
39 foldl DotRef (ref x) (map Id xs)
42 error "dotSep must be called on a non-empty list of variables"
49(<|) :: Expr -> Expr -> Expr
54function :: [Text] -> [Stmt] -> Expr
56 Function Nothing (map Id args) stmts
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list