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.Utils.String

  • 11 values
  • PackageAgda-2.8.0.2
  • Exports11
  • LanguageHaskell2010
  • LicenceMIT
  • SourceString.hs
valuequote :: String -> String
#

quote adds double quotes around the string, replaces newline characters with n, and escapes double quotes and backslashes within the string. This is different from the behaviour of show:

> putStrLn $ show "\x2200"
"\8704"
> putStrLn $ quote "\x2200"
"∀"

(The code examples above have been tested using version 4.2.0.0 of the base library.)

valuedelimiter :: String -> String
#

Adds hyphens around the given string

Example1 expression
putStrLn $ delimiter "Title"———— Title —————————————————————————————————————————————————
valuepluralS :: Sized a => a -> String -> String
#

Append an "s" to the second argument if the first has cardinality /= 1.

Orphan instances

6 instances