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

GHC 10.0.0.20260917 · lts/ghc-10.0.x · fc4e598 · 2026-10-11

Moduleghc-internal-10.0.0Haskell2010

GHC.Internal.CString

GHC C strings definitions (previously in GHC.Internal.Base). Use GHC.Exts from the base package instead of importing this module directly.

  • 8 values

Ascii variants

4 declarations
valuecstringLength# :: Addr# -> Int#
#

Compute the length of a NUL-terminated string. This address must refer to immutable memory. GHC includes a built-in rule for constant folding when the argument is a statically-known literal. That is, a core-to-core pass reduces the expression cstringLength# "hello"# to the constant 5#.

Utf variants

3 declarations

Other

1 declaration