language-nix-2.1.0.1: Data types and useful functions to represent and manipulate the Nix language.

Safe HaskellNone
LanguageHaskell2010

Language.Nix.Binding

Synopsis

Documentation

data Binding Source

A Binding represents an identifier that refers to some other Path.

>>> :set -XOverloadedStrings
>>> "inherit (foo.bar) abc" :: Binding
Bind (Identifier "abc") (Path [Identifier "foo",Identifier "bar",Identifier "abc"])
\b -> Just (b :: Binding) == simpleParse (display b)