Hoogle Search
Within LTS Haskell 24.38 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
pattern
PreInc :: JStgExpr -> JStgExprghc GHC.JS.JStg.Syntax pattern synonym for prefix increment ++x
-
ghc GHC.JS.JStg.Syntax Prefix Increment: ++x
-
- Domain and PurposeGHC.JS.Ppr defines the code generation facilities for the JavaScript backend. That is, this module exports a function from the JS backend IR to JavaScript compliant concrete syntax that can readily be executed by nodejs or called in a browser.
- DesignThis module follows the architecture and style of the other backends in GHC: it intances Outputable for the relevant types, creates a class that describes a morphism from the IR domain to JavaScript concrete Syntax and then generates that syntax on a case by case basis.
- How to useThe key functions are renderJS, jsToDoc, and the RenderJS record. Use the RenderJS record and jsToDoc to define a custom renderers for specific parts of the backend, for example in Opt a custom renderer ensures all Ident generated by the linker optimization pass are prefixed differently than the default. Use renderJS to generate JavaScript concrete syntax in the general case, suitable for human consumption.
-
ghc GHC.JS.Syntax Unary Plus: +x
pattern
PostDec :: JExpr -> JExprghc GHC.JS.Syntax pattern synonym for postfix decrement --x
-
ghc GHC.JS.Syntax Postfix Decrement: x--
pattern
PostInc :: JExpr -> JExprghc GHC.JS.Syntax pattern synonym for postfix increment x++
-
ghc GHC.JS.Syntax Postfix Increment: x++
pattern
PreDec :: JExpr -> JExprghc GHC.JS.Syntax pattern synonym for prefix decrement --x
-
ghc GHC.JS.Syntax Prefix Decrement: --x