Skip to content

Commit 7d8e5b7

Browse files
committed
Builtins: m refactor
1 parent 5508025 commit 7d8e5b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Nix/Builtins.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1140,13 +1140,13 @@ toFileNix name s =
11401140
(stringIgnoreContext s')
11411141

11421142
let
1143-
storepath = coerce $ toText @FilePath $ coerce mres
1143+
storepath = coerce (fromString @Text) mres
11441144
sc = StringContext storepath DirectPath
11451145

11461146
toValue $ mkNixStringWithSingletonContext storepath sc
11471147

11481148
toPathNix :: MonadNix e t f m => NValue t f m -> m (NValue t f m)
1149-
toPathNix = toValue @Path <=< fromValue @Path
1149+
toPathNix = inHask @Path id
11501150

11511151
pathExistsNix :: MonadNix e t f m => NValue t f m -> m (NValue t f m)
11521152
pathExistsNix nvpath =

0 commit comments

Comments
 (0)