Skip to content

Commit 4562922

Browse files
committed
remote: neaten readme
1 parent 5e909db commit 4562922

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

hnix-store-remote/README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,14 @@ via `nix-daemon`.
1414
```haskell
1515
{-# LANGUAGE OverloadedStrings #-}
1616

17-
import Control.Monad (void)
18-
import Control.Monad.IO.Class (liftIO)
1917
import System.Nix.StorePath (mkStorePathName)
2018
import System.Nix.Store.Remote
2119

2220
main :: IO ()
2321
main = do
24-
void $ runStore $ do
22+
runStore $ do
2523
syncWithGC
2624
roots <- findRoots
27-
liftIO $ print roots
2825

2926
res <- case mkStorePathName "hnix-store" of
3027
Left e -> error (show e)
@@ -33,5 +30,7 @@ main = do
3330
(StoreText name "Hello World!")
3431
mempty
3532
RepairMode_DontRepair
36-
liftIO $ print res
33+
34+
pure (roots, res)
35+
>>= print
3736
```

0 commit comments

Comments
 (0)