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

ModuleCabal-syntax-3.16.0.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