clean-up: Builtins.hs: nixPath: simplify parens
This commit is contained in:
parent
55b0040384
commit
c01e156fef
|
@ -328,16 +328,17 @@ foldNixPath f z = do
|
|||
nixPath :: MonadNix e t f m => m (NValue t f m)
|
||||
nixPath = fmap nvList $ flip foldNixPath [] $ \p mn ty rest ->
|
||||
pure
|
||||
$ (flip nvSet mempty $ M.fromList
|
||||
$ flip nvSet mempty ( M.fromList
|
||||
[ case ty of
|
||||
PathEntryPath -> ("path", nvPath p)
|
||||
PathEntryURI ->
|
||||
( "uri"
|
||||
, nvStr (hackyMakeNixStringWithoutContext (Text.pack p))
|
||||
, nvStr $ hackyMakeNixStringWithoutContext $ Text.pack p
|
||||
)
|
||||
|
||||
, ( "prefix"
|
||||
, nvStr
|
||||
(hackyMakeNixStringWithoutContext $ Text.pack (fromMaybe "" mn))
|
||||
$ hackyMakeNixStringWithoutContext $ Text.pack $ fromMaybe "" mn
|
||||
)
|
||||
]
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue