HORIZON HASKELLDocslts/ghc-10.0.x04404a62026-10-19Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 04404a6 · 2026-10-19

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