hnix-store-core-0.8.0.0: Core types used for interacting with the Nix store.
Safe HaskellSafe-Inferred
LanguageHaskell2010

System.Nix.OutputName

Contents

Description

 
Synopsis

Documentation

newtype OutputName Source #

Name of the derived path output Typically used for "dev", "doc" sub-outputs

Constructors

OutputName 

Fields

Instances

Instances details
Generic OutputName Source # 
Instance details

Defined in System.Nix.OutputName

Associated Types

type Rep OutputName :: Type -> Type #

Show OutputName Source # 
Instance details

Defined in System.Nix.OutputName

Eq OutputName Source # 
Instance details

Defined in System.Nix.OutputName

Ord OutputName Source # 
Instance details

Defined in System.Nix.OutputName

Hashable OutputName Source # 
Instance details

Defined in System.Nix.OutputName

type Rep OutputName Source # 
Instance details

Defined in System.Nix.OutputName

type Rep OutputName = D1 ('MetaData "OutputName" "System.Nix.OutputName" "hnix-store-core-0.8.0.0-2YQUX8JlMxk93e1fw1Y66G" 'True) (C1 ('MetaCons "OutputName" 'PrefixI 'True) (S1 ('MetaSel ('Just "unOutputName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

Re-exports

data InvalidNameError Source #

Reason why a path name or output name is not valid

Instances

Instances details
Generic InvalidNameError Source # 
Instance details

Defined in System.Nix.StorePath

Associated Types

type Rep InvalidNameError :: Type -> Type #

Show InvalidNameError Source # 
Instance details

Defined in System.Nix.StorePath

Eq InvalidNameError Source # 
Instance details

Defined in System.Nix.StorePath

Ord InvalidNameError Source # 
Instance details

Defined in System.Nix.StorePath

Hashable InvalidNameError Source # 
Instance details

Defined in System.Nix.StorePath

type Rep InvalidNameError Source # 
Instance details

Defined in System.Nix.StorePath

type Rep InvalidNameError = D1 ('MetaData "InvalidNameError" "System.Nix.StorePath" "hnix-store-core-0.8.0.0-2YQUX8JlMxk93e1fw1Y66G" 'False) ((C1 ('MetaCons "EmptyName" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "NameTooLong" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int))) :+: (C1 ('MetaCons "LeadingDot" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "InvalidCharacters" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))))

parseNameText :: Text -> Either InvalidNameError Text Source #

Parse name (either StorePathName or OutputName)