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

GHC 10.0.0.20260917 · lts/ghc-10.0.x · aa25b89 · 2026-10-10

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