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

Moduleghc-9.14.1GHC2021

GHC.Runtime.Eval.Utils

  • 2 values
  • Packageghc-9.14.1
  • Exports2
  • LanguageGHC2021
  • LicenceBSD-3-Clause
  • SourceUtils.hs
valuesplitIdent :: String -> (String, String, String)
#

Split up a string with an eventually qualified declaration name into 3 components

  1. module name

  2. top-level decl

  3. full-name of the eventually nested decl, but without module qualification

Example
    "foo"           = ("", "foo", "foo")
    "A.B.C.foo"     = (A.B.C, "foo", "foo")
    "M.N.foo.bar"   = (M.N, "foo", "foo.bar")