HORIZON HASKELLDocslts/ghc-9.14.x6d5fdfd2026-10-12Search packagesCtrl K
Theme: |

GHC 9.14.1 · lts/ghc-9.14.x · 6d5fdfd · 2026-10-12

ModuleCabal-syntax-3.16.0.0Haskell2010

Distribution.ModuleName

Data type for Haskell module names.

Contents
  1. Internal
Synopsis
newtypenewtype ModuleName

A valid Haskell module name.

Instances14Eq, Data, Ord, Read, Show, IsString, …

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