File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -126,12 +126,12 @@ coerceStringlikeToNixString ctsm =
126126-- | Convert @Path@ into @NixString@.
127127-- With an additional option to store the resolved path into Nix Store.
128128coercePathToNixString :: (MonadStore m , Framed e m ) => CopyToStoreMode -> Path -> m NixString
129- coercePathToNixString ctsm =
129+ coercePathToNixString =
130130 bool
131131 (pure . mkNixStringWithoutContext . fromString . coerce)
132- (fmap storePathToNixString . addPath)
133- (ctsm == CopyToStore )
132+ (( storePathToNixString <$> ) . addPath)
133+ . ( CopyToStore == )
134134 where
135135 storePathToNixString :: StorePath -> NixString
136- storePathToNixString (fromString . coerce -> sp) =
137- join ( flip mkNixStringWithSingletonContext . (`StringContext ` DirectPath )) sp
136+ storePathToNixString =
137+ ( mkNixStringWithSingletonContext <*> (`StringContext ` DirectPath )) . fromString . coerce
You can’t perform that action at this time.
0 commit comments