Haskell implementation of the nix store API