HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

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