HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

ModuleAgda-2.7.0.1Haskell2010

Agda.Compiler.JS.Pretty

  • 2 types
  • 2 classes
  • 27 values
  • PackageAgda-2.7.0.1
  • Exports31
  • LanguageHaskell2010
  • LicenceMIT
  • SourcePretty.hs
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.