| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Distribution.Nixpkgs.Nodejs.Utils
Description
Synopsis
- packageKeyToSymbol :: PackageKey -> Text
- packageKeyNameToSymbol :: PackageKeyName -> Text
- attrSetMay :: Text -> Maybe NExpr -> [Binding NExpr]
- attrSetMayStr :: Text -> Maybe Text -> [Binding NExpr]
Documentation
packageKeyToSymbol :: PackageKey -> Text Source #
Representation of a PackageKey as nix attribute name.
packageKeyNameToSymbol :: PackageKeyName -> Text Source #
Representation of a PackageKeyName as nix attribute name.
attrSetMay :: Text -> Maybe NExpr -> [Binding NExpr] Source #
Return a Binding if Just (or none if Nothing)
for mkRecSet and mkNonRecSet.
attrSetMayStr :: Text -> Maybe Text -> [Binding NExpr] Source #
Convenience shortcut for .attrSetMay x (mkStr <$> y)