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 :: MonadNix e t f m => m (NValue t f m)
|
||||||
nixPath = fmap nvList $ flip foldNixPath [] $ \p mn ty rest ->
|
nixPath = fmap nvList $ flip foldNixPath [] $ \p mn ty rest ->
|
||||||
pure
|
pure
|
||||||
$ (flip nvSet mempty $ M.fromList
|
$ flip nvSet mempty ( M.fromList
|
||||||
[ case ty of
|
[ case ty of
|
||||||
PathEntryPath -> ("path", nvPath p)
|
PathEntryPath -> ("path", nvPath p)
|
||||||
PathEntryURI ->
|
PathEntryURI ->
|
||||||
( "uri"
|
( "uri"
|
||||||
, nvStr (hackyMakeNixStringWithoutContext (Text.pack p))
|
, nvStr $ hackyMakeNixStringWithoutContext $ Text.pack p
|
||||||
)
|
)
|
||||||
|
|
||||||
, ( "prefix"
|
, ( "prefix"
|
||||||
, nvStr
|
, nvStr
|
||||||
(hackyMakeNixStringWithoutContext $ Text.pack (fromMaybe "" mn))
|
$ hackyMakeNixStringWithoutContext $ Text.pack $ fromMaybe "" mn
|
||||||
)
|
)
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue