1d47e94bbe
Query my SQLite database from within my Servant handlers. Nothing I've written is domain-specific to the business logic yet -- I'm just making sure everything integrates.
16 lines
354 B
Nix
16 lines
354 B
Nix
let
|
|
pkgs = import <nixpkgs> {};
|
|
in pkgs.mkShell {
|
|
buildInputs = with pkgs; [
|
|
(haskellPackages.ghcWithPackages (hpkgs: with hpkgs; [
|
|
hpkgs.servant-server
|
|
hpkgs.aeson
|
|
hpkgs.resource-pool
|
|
hpkgs.sqlite-simple
|
|
hpkgs.warp
|
|
hpkgs.persistent
|
|
hpkgs.persistent-sqlite
|
|
hpkgs.persistent-template
|
|
]))
|
|
];
|
|
}
|