summaryrefslogtreecommitdiff
path: root/provider/posts/pwutil.md
diff options
context:
space:
mode:
Diffstat (limited to 'provider/posts/pwutil.md')
-rw-r--r--provider/posts/pwutil.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/provider/posts/pwutil.md b/provider/posts/pwutil.md
index a4b3757..63a660d 100644
--- a/provider/posts/pwutil.md
+++ b/provider/posts/pwutil.md
@@ -53,7 +53,7 @@ pwutil
53is a [nix](https://nixos.org/nix) expression allowing easy installation using the nix package manager. 53is a [nix](https://nixos.org/nix) expression allowing easy installation using the nix package manager.
54A `~/.nixpkgs/config.nix` allowing one to do so might look thus: 54A `~/.nixpkgs/config.nix` allowing one to do so might look thus:
55 55
56~~~ {.numberLines} 56~~~
57{ 57{
58 packageOverrides = pkgs: { 58 packageOverrides = pkgs: {
59 pwutil = pkgs.callPackage /path/to/pwutil.nix {}; 59 pwutil = pkgs.callPackage /path/to/pwutil.nix {};
@@ -76,7 +76,7 @@ Introducing `PW` (much as [xmonad](https://xmonad.org) did with `X`) is an easy
76`BackStore` is our (new and improved) way of encapsulating store access in a totally customisable way—`plain`, which is essential `readFile` and `writeFile` as provided by `ByteString`, is provided for convenience in `Util.hs`. 76`BackStore` is our (new and improved) way of encapsulating store access in a totally customisable way—`plain`, which is essential `readFile` and `writeFile` as provided by `ByteString`, is provided for convenience in `Util.hs`.
77`PWConfig` most importantly contains a definition of generators (called by passing `--gen-…` to `pwadd`). 77`PWConfig` most importantly contains a definition of generators (called by passing `--gen-…` to `pwadd`).
78 78
79~~~ {#Types.hs .haskell .numberLines} 79~~~ {#Types.hs .haskell}
80module PWUtil.Types ( 80module PWUtil.Types (
81 PW(..), 81 PW(..),
82 BackStore(..), 82 BackStore(..),
@@ -109,7 +109,7 @@ type Generator = [String] -> PW Value
109 109
110is, in a [xmonad](http://xmonad.org) kind of way, the configuration file—the shipped default is reproduced below as a template for custom configs. 110is, in a [xmonad](http://xmonad.org) kind of way, the configuration file—the shipped default is reproduced below as a template for custom configs.
111 111
112~~~ {#pwutil.hs .haskell .numberLines} 112~~~ {#pwutil.hs .haskell}
113import PWUtil 113import PWUtil
114 114
115import System.FilePath ((</>)) 115import System.FilePath ((</>))