clean-up: Nix/Convert.hs: use tuple sectioning

This commit is contained in:
Anton-Latukha 2020-09-18 15:25:45 +03:00
parent c3f4d72dfd
commit 4b44d97d9b
No known key found for this signature in database
GPG Key ID: 3D84C07E91802E41
1 changed files with 3 additions and 3 deletions

View File

@ -365,9 +365,9 @@ instance Convertible e t f m
[] -> return Nothing
_ -> Just <$> toValue ts
pure $ flip nvSet' M.empty $ M.fromList $ catMaybes
[ (\p -> ("path", p)) <$> path
, (\ao -> ("allOutputs", ao)) <$> allOutputs
, (\os -> ("outputs", os)) <$> outputs
[ ("path",) <$> path
, ("allOutputs",) <$> allOutputs
, ("outputs",) <$> outputs
]
instance Convertible e t f m => ToValue () m (NExprF (NValue t f m)) where