HORIZON HASKELLDocslts/ghc-10.0.x77a86622026-10-31Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 77a8662 · 2026-10-31

ModuleAgda-2.8.0.2Haskell2010

Agda.Utils.String

Synopsis
  • 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.)

Adds hyphens around the given string

Example1 expression
putStrLn $ delimiter "Title"———— Title —————————————————————————————————————————————————

Orphan instances

6 instances