Skip to content

Commit 4914161

Browse files
stolyarolehOleh Stolyar
authored andcommitted
hnix-store-remote: fix README.md
1 parent db78d77 commit 4914161

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

hnix-store-remote/README.md

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,10 @@ via `nix-daemon`.
1111
## Example
1212

1313
```haskell
14-
15-
import Control.Monad.IO.Class (liftIO)
16-
import Data.HashSet as HS
1714
import System.Nix.Store.Remote
1815

19-
main = do
20-
runStore $ do
16+
main =
17+
runStore_ $ do
2118
syncWithGC
22-
roots <- findRoots
23-
liftIO $ print roots
24-
25-
res <- addTextToStore "hnix-store" "test" (HS.fromList []) False
26-
liftIO $ print res
19+
optimiseStore
2720
```

0 commit comments

Comments
 (0)