Language/Nix/Binding.hs: new type
A binding represents an identifier that is bound to some other Nix path.
commitc79b8586e7525e1bb5c6550ea2a9eaaefff1f073
authorPeter Simons <simons@cryp.to>
dateThu 20 Aug 2015, 15:39 (11 years ago)
parent653a901
src/Language/Nix/Binding.hsnew file+12
@@ -0,0 +1,12 @@
1+{-# LANGUAGE TemplateHaskell #-}
2+
3+module Language.Nix.Binding ( Binding, localName, reference ) where
4+
5+import Control.Lens
6+import Language.Nix.Identifier
7+import Language.Nix.Path
8+
9+data Binding = Bind { _localName :: Identifier, _reference :: Path }
10+ deriving (Show, Eq, Ord)
11+
12+makeLenses ''Binding