| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
System.Nix.OutputName
Contents
Description
Synopsis
- newtype OutputName = OutputName {
- unOutputName :: Text
- mkOutputName :: Text -> Either InvalidNameError OutputName
- data InvalidNameError
- parseNameText :: Text -> Either InvalidNameError Text
Documentation
newtype OutputName Source #
Name of the derived path output Typically used for "dev", "doc" sub-outputs
Constructors
| OutputName | |
Fields
| |
Instances
Re-exports
data InvalidNameError Source #
Reason why a path name or output name is not valid
Constructors
| EmptyName | |
| NameTooLong Int | |
| LeadingDot | |
| InvalidCharacters Text |
Instances
parseNameText :: Text -> Either InvalidNameError Text Source #
Parse name (either StorePathName or OutputName)