Cabal-3.7.0.0: A framework for packaging Haskell software
CopyrightDuncan Coutts 2008
LicenseBSD3
Maintainercabal-devel@haskell.org
Portabilityportable
Safe HaskellSafe-Inferred
LanguageHaskell2010

Distribution.ModuleName

Contents

Description

Data type for Haskell module names.

Synopsis

Documentation

data ModuleName Source #

A valid Haskell module name.

Instances

Instances details
Parsec ModuleName Source # 
Instance details

Defined in Distribution.ModuleName

Pretty ModuleName Source # 
Instance details

Defined in Distribution.ModuleName

Structured ModuleName Source # 
Instance details

Defined in Distribution.ModuleName

Data ModuleName Source # 
Instance details

Defined in Distribution.ModuleName

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ModuleName -> c ModuleName Source #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ModuleName Source #

toConstr :: ModuleName -> Constr Source #

dataTypeOf :: ModuleName -> DataType Source #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ModuleName) Source #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ModuleName) Source #

gmapT :: (forall b. Data b => b -> b) -> ModuleName -> ModuleName Source #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ModuleName -> r Source #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ModuleName -> r Source #

gmapQ :: (forall d. Data d => d -> u) -> ModuleName -> [u] Source #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ModuleName -> u Source #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ModuleName -> m ModuleName Source #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ModuleName -> m ModuleName Source #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ModuleName -> m ModuleName Source #

IsString ModuleName Source #

Construct a ModuleName from a valid module name String.

This is just a convenience function intended for valid module strings. It is an error if it is used with a string that is not a valid module name. If you are parsing user input then use simpleParse instead.

Instance details

Defined in Distribution.ModuleName

Generic ModuleName Source # 
Instance details

Defined in Distribution.ModuleName

Associated Types

type Rep ModuleName :: Type -> Type Source #

Read ModuleName Source # 
Instance details

Defined in Distribution.ModuleName

Show ModuleName Source # 
Instance details

Defined in Distribution.ModuleName

Binary ModuleName Source # 
Instance details

Defined in Distribution.ModuleName

NFData ModuleName Source # 
Instance details

Defined in Distribution.ModuleName

Methods

rnf :: ModuleName -> () Source #

Eq ModuleName Source # 
Instance details

Defined in Distribution.ModuleName

Ord ModuleName Source # 
Instance details

Defined in Distribution.ModuleName

ModSubst (Set ModuleName) Source # 
Instance details

Defined in Distribution.Backpack.ModSubst

type Rep ModuleName Source # 
Instance details

Defined in Distribution.ModuleName

type Rep ModuleName = D1 ('MetaData "ModuleName" "Distribution.ModuleName" "Cabal-3.7.0.0" 'True) (C1 ('MetaCons "ModuleName" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ShortText)))

fromComponents :: [String] -> ModuleName Source #

Deprecated: Exists for cabal-install only

Construct a ModuleName from valid module components, i.e. parts separated by dots.

components :: ModuleName -> [String] Source #

The individual components of a hierarchical module name. For example

components (fromString "A.B.C") = ["A", "B", "C"]

toFilePath :: ModuleName -> FilePath Source #

Convert a module name to a file path, but without any file extension. For example:

toFilePath (fromString "A.B.C") = "A/B/C"

main :: ModuleName Source #

The module name Main.

Internal