Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data PackageName
- unPackageName :: PackageName -> String
- mkPackageName :: String -> PackageName
- unPackageNameST :: PackageName -> ShortText
- mkPackageNameST :: ShortText -> PackageName
Documentation
data PackageName Source #
A package name.
Use mkPackageName
and unPackageName
to convert from/to a
String
.
This type is opaque since Cabal-2.0
Since: Cabal-syntax-2.0.0.2
Instances
unPackageName :: PackageName -> String Source #
Convert PackageName
to String
mkPackageName :: String -> PackageName Source #
Construct a PackageName
from a String
mkPackageName
is the inverse to unPackageName
Note: No validations are performed to ensure that the resulting
PackageName
is valid
Since: Cabal-syntax-2.0.0.2
unPackageNameST :: PackageName -> ShortText Source #
Since: Cabal-syntax-3.4.0.0
mkPackageNameST :: ShortText -> PackageName Source #
Construct a PackageName
from a ShortText
Note: No validations are performed to ensure that the resulting
PackageName
is valid
Since: Cabal-syntax-3.4.0.0