HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

ModuleCabal-syntax-3.12.1.0Haskell2010

Distribution.ModuleName

Data type for Haskell module names.

  • 1 type
  • 5 values
newtypenewtype ModuleName
#

A valid Haskell module name.

Instances14Eq, Data, Ord, Read, Show, IsString, …
valuecomponents :: ModuleName -> [String]
#

The individual components of a hierarchical module name. For example

components (fromString "A.B.C") = ["A", "B", "C"]

Convert a module name to a file path, but without any file extension. For example:

toFilePath (fromString "A.B.C") = "A/B/C"

Internal

1 declaration