language-nix-2.1.0.1: Data types and useful functions to represent and manipulate the Nix language.
Language.Nix.Binding
Synopsis
data Binding Source
A Binding represents an identifier that refers to some other Path.
Binding
Path
>>> :set -XOverloadedStrings >>> "inherit (foo.bar) abc" :: Binding Bind (Identifier "abc") (Path [Identifier "foo",Identifier "bar",Identifier "abc"])
>>>
:set -XOverloadedStrings
"inherit (foo.bar) abc" :: Binding
\b -> Just (b :: Binding) == simpleParse (display b)
Instances
binding :: Iso' Binding (Identifier, Path) Source
localName :: Lens' Binding Identifier Source
reference :: Lens' Binding Path Source