This commit is contained in:
2026-04-23 23:37:56 -06:00
parent f552132241
commit 540a5e03fe
5 changed files with 75 additions and 2 deletions

1
.envrc Normal file
View File

@@ -0,0 +1 @@
use flake

1
.gitignore vendored
View File

@@ -6,3 +6,4 @@ dist-newstyle
*.hi
.ghc.environment.*
*.tix
.direnv

27
flake.lock generated Normal file
View File

@@ -0,0 +1,27 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1776949667,
"narHash": "sha256-GMSVw35Q+294GlrTUKlx087E31z7KurReQ1YHSKp5iw=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "01fbdeef22b76df85ea168fbfe1bfd9e63681b30",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

42
flake.nix Normal file
View File

@@ -0,0 +1,42 @@
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
};
outputs = { self, nixpkgs, ... }@inputs:
let
supportedSystems = [
"aarch64-darwin" "aarch64-linux"
"x86_64-darwin" "x86_64-linux"
];
each-system = f: nixpkgs.lib.genAttrs supportedSystems (system: f rec {
pkgs = import nixpkgs {
inherit system;
};
inherit (pkgs) lib;
inherit system;
});
in {
# Exposed as a REPL convenience.
_pkgs = each-system ({ pkgs, ... }: pkgs);
packages = each-system ({ pkgs, ... }: {
# default = pkgs.callPackage ./default.nix {};
});
devShells = each-system ({ pkgs, system, ... }: {
default = pkgs.haskellPackages.developPackage {
root = ./.;
modifier = drv:
pkgs.haskell.lib.addBuildTools
drv
(with pkgs; [
cabal-install
qbe
gcc
]);
};
});
};
}

View File

@@ -26,6 +26,7 @@ tested-with:
, GHC == 9.0.2
, GHC == 9.2.2
, GHC == 9.4.2
, GHC == 9.10.3
source-repository head
type: git
@@ -54,12 +55,13 @@ library
|| ^>= 4.14
|| ^>= 4.15
|| ^>= 4.17
|| ^>= 4.20
, text ^>= 1.2.5
|| ^>= 2.0
, text-short ^>= 0.1
, text-short >= 0.1 || <=0.1.6.1
, bytestring ^>= 0.11.3
, hashable ^>= 1.4.0
, deepseq ^>= 1.4.4
, deepseq ^>= 1.4.4 || ^>= 1.5
, prettyprinter ^>= 1.7.1
hs-source-dirs: src