HORIZON HASKELLDocslts/ghc-9.14.x3e2d5682026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · 3e2d568 · 2026-10-11

ModuleAgda-2.8.0.2Haskell2010

Agda.Compiler.JS.Pretty

  • 2 types
  • 2 classes
  • 27 values
  • PackageAgda-2.8.0.2
  • Exports31
  • LanguageHaskell2010
  • LicenceMIT
  • SourcePretty.hs
datadata JSModuleStyle
#
Instances3Generic, NFData, Rep
value(<+>) :: Doc -> Doc -> Doc
#

Separate by space that will be removed by minify.

For non-removable space, use d <> " " <> d'.

valuevsep :: [Doc] -> Doc
#

Concatenate vertically, separated by blank lines.

classclass Pretty a where
#

Methods

Instances9Pretty, …
valueisValidJSIdent :: String -> Bool
#

Check if a string is a valid JS identifier. The check ignores keywords as we prepend z_ to our identifiers. The check is conservative and may not admit all valid JS identifiers.