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

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

Moduleghc-10.0.0.20260917GHC2024

GHC.Runtime.Eval.Utils

  • 2 values
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")