1{-# OPTIONS_GHC -Wall #-}
2module Generate.JavaScript.Helpers
13import Data.Text (Text)
14import Generate.JavaScript.Builder
21varDecl :: Text -> Expr -> VarDecl
23 VarDecl (Id x) (Just expr)
26refOrObject :: Text -> Expr
28 Infix OpLOr (ref name) (Object [])
40(==>) :: Text -> Expr -> (Prop, Expr)
42 ( IdProp (Id name), expr )
49 foldl DotRef (ref x) (map Id xs)
52 error "dotSep must be called on a non-empty list of variables"
59(<|) :: Expr -> Expr -> Expr
64function :: [Text] -> [Stmt] -> Expr
66 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