Hoogle Search
Within LTS Haskell 24.40 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
ghc-lib-parser GHC.JS.JStg.Syntax Unary Plus: +x
pattern
PostDec :: JStgExpr -> JStgExprghc-lib-parser GHC.JS.JStg.Syntax pattern synonym for postfix decrement --x
-
ghc-lib-parser GHC.JS.JStg.Syntax Postfix Decrement: x--
pattern
PostInc :: JStgExpr -> JStgExprghc-lib-parser GHC.JS.JStg.Syntax pattern synonym for postfix increment x++
-
ghc-lib-parser GHC.JS.JStg.Syntax Postfix Increment: x++
pattern
PreDec :: JStgExpr -> JStgExprghc-lib-parser GHC.JS.JStg.Syntax pattern synonym for prefix decrement --x
-
ghc-lib-parser GHC.JS.JStg.Syntax Prefix Decrement: --x
pattern
PreInc :: JStgExpr -> JStgExprghc-lib-parser GHC.JS.JStg.Syntax pattern synonym for prefix increment ++x
-
ghc-lib-parser 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 instances 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.