File tree Expand file tree Collapse file tree 3 files changed +22
-3
lines changed Expand file tree Collapse file tree 3 files changed +22
-3
lines changed Original file line number Diff line number Diff line change 1+ README.md
Original file line number Diff line number Diff line change @@ -12,17 +12,19 @@ via `nix-daemon`.
1212## Example
1313
1414``` haskell
15+ {-# LANGUAGE OverloadedStrings #-}
1516
17+ import Control.Monad (void )
1618import Control.Monad.IO.Class (liftIO )
17- import Data.HashSet as HS
1819import System.Nix.Store.Remote
1920
21+ main :: IO ()
2022main = do
21- runStore $ do
23+ void $ runStore $ do
2224 syncWithGC
2325 roots <- findRoots
2426 liftIO $ print roots
2527
26- res <- addTextToStore " hnix-store" " test" ( HS. fromList [] ) False
28+ res <- addTextToStore " hnix-store" " test" mempty False
2729 liftIO $ print res
2830```
Original file line number Diff line number Diff line change @@ -26,6 +26,12 @@ flag io-testsuite
2626 Enable testsuite, which requires external
2727 binaries and Linux namespace support.
2828
29+ flag build-readme
30+ default :
31+ True
32+ description :
33+ Build README.lhs example
34+
2935library
3036 import : commons
3137 exposed-modules :
@@ -81,6 +87,16 @@ library
8187 default-language : Haskell2010
8288 ghc-options : -Wall
8389
90+ executable remote-readme
91+ build-depends :
92+ base >= 4.12 && < 5
93+ , hnix-store-remote
94+ build-tool-depends :
95+ markdown-unlit :markdown-unlit
96+ default-language : Haskell2010
97+ main-is : README.lhs
98+ ghc-options : -pgmL markdown-unlit -Wall
99+
84100test-suite hnix-store-remote-tests
85101 import : commons
86102
You can’t perform that action at this time.
0 commit comments