We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d235731 commit 5cb99c5Copy full SHA for 5cb99c5
src/Nix/Convert.hs
@@ -219,7 +219,7 @@ instance Convertible e t f m
219
fromValue = fromMayToValue $ TString NoContext
220
221
222
-newtype Path = Path { getPath :: FilePath }
+newtype Path = Path FilePath
223
deriving Show
224
225
instance ( Convertible e t f m
@@ -365,7 +365,7 @@ instance Convertible e t f m
365
366
instance Convertible e t f m
367
=> ToValue Path m (NValue' t f m (NValue t f m)) where
368
- toValue = pure . nvPath' . getPath
+ toValue = pure . nvPath' . coerce
369
370
371
=> ToValue StorePath m (NValue' t f m (NValue t f m)) where
0 commit comments