Safe Haskell | None |
---|---|
Language | Haskell2010 |
Nix generation helpers. No guarantee of stability (internal!).
Synopsis
- stringKey :: Text -> NExpr -> Binding NExpr
- ($$=) :: Text -> NExpr -> Binding NExpr
- dynamicKey :: Text -> NKeyName NExpr
- inheritStatic :: [Text] -> Binding e
- simpleParamSet :: [Text] -> Params NExpr
- multiParam :: [Text] -> NExpr -> NExpr
- (!!.) :: NExpr -> Text -> NExpr
- data StrQ
- mkStrQ :: [StrQ] -> NExpr
- mkStrQI :: [StrQ] -> NExpr
Documentation
stringKey :: Text -> NExpr -> Binding NExpr Source #
Make a binding, but have the key be a string, not symbol.
dynamicKey :: Text -> NKeyName NExpr Source #
Make a dynamic key name that is only enclosed in double quotes (no antiquotes).
inheritStatic :: [Text] -> Binding e Source #
Inherit the given list of symbols.
simpleParamSet :: [Text] -> Params NExpr Source #
shortcut to create a list of closed params, like { foo, bar, baz }:
multiParam :: [Text] -> NExpr -> NExpr Source #
shortcut to create a list of multiple params, like a: b: c:
(!!.) :: NExpr -> Text -> NExpr infixl 8 Source #
Like !.
, but automatically convert plain strings to static keys.
String quotation, either a plain string (S) or antiquoted (A)
Instances
IsString StrQ Source # | |
Defined in Nix.Expr.Additions fromString :: String -> StrQ # |