swap to word4 instead of word8 sizes

This isn't beter yet, but I have a hunch it's to to the Maybe in
the compressed word4 list type, which I can get rid of
This commit is contained in:
Jack Wines 2025-01-08 19:45:34 -08:00
parent 46749895bc
commit 2123636291
Signed by: Jack
SSH key fingerprint: SHA256:AaP2Hr/e3mEjeY+s9XJmQqAesqEms8ENRhwRkpO0WUk
9 changed files with 400 additions and 148 deletions

179
flake.nix
View file

@ -5,87 +5,142 @@
systems.url = "github:nix-systems/default";
flake-parts.url = "github:hercules-ci/flake-parts";
haskell-flake.url = "github:srid/haskell-flake";
flake-root.url = "github:srid/flake-root";
treefmt-nix.url = "github:numtide/treefmt-nix";
treefmt-nix.inputs.nixpkgs.follows = "nixpkgs";
accelerate = {
url = "github:AccelerateHS/accelerate?submodules=1";
flake = false;
};
llvm-hs = {
url = "github:llvm-hs/llvm-hs?ref=llvm-12";
flake = false;
};
llvm-hs-pure = {
url = "github:llvm-hs/llvm-hs?dir=llvm-hs-pure&ref=llvm-12";
flake = false;
};
mission-control.url = "github:Platonic-Systems/mission-control";
};
outputs = inputs:
inputs.flake-parts.lib.mkFlake { inherit inputs; } {
systems = import inputs.systems;
imports = [
inputs.haskell-flake.flakeModule
inputs.treefmt-nix.flakeModule
];
perSystem = { self', system, lib, config, pkgs, ... }: {
# Our only Haskell project. You can have multiple projects, but this template
# has only one.
# See https://github.com/srid/haskell-flake/blob/master/example/flake.nix
haskellProjects.default = {
# The base package set (this value is the default)
basePackages = pkgs.haskell.packages.ghc96;
inputs.flake-parts.lib.mkFlake { inherit inputs; } {
systems = import inputs.systems;
imports = [
inputs.flake-root.flakeModule
inputs.haskell-flake.flakeModule
inputs.treefmt-nix.flakeModule
inputs.mission-control.flakeModule
];
perSystem = { self', system, lib, config, pkgs, ... }: {
# Our only Haskell project. You can have multiple projects, but this template
# has only one.
# See https://github.com/srid/haskell-flake/blob/master/example/flake.nix
haskellProjects.default = {
# The base package set (this value is the default)
basePackages = pkgs.haskell.packages.ghc96;
# Packages to add on top of `basePackages`
packages = {
# Add source or Hackage overrides here
# (Local packages are added automatically)
# https://github.com/lehins/hip.git
# hip.source = inputs.hip + "/hip";
};
# Packages to add on top of `basePackages`
packages = {
# Add source or Hackage overrides here
# (Local packages are added automatically)
# https://github.com/lehins/hip.git
# hip.source = inputs.hip + "/hip";
accelerate.source = inputs.accelerate;
# llvm-hs.source = inputs.llvm-hs;
llvm-hs-pure.source = inputs.llvm-hs-pure;
};
# Add your package overrides here
settings = {
uuid ={
# Add your package overrides here
settings = {
uuid.jailbreak = true;
accelerate =
{
jailbreak = true;
broken = false;
};
llvm-hs =
{
jailbreak = true;
broken = false;
};
llvm-hs-pure =
{
jailbreak = true;
broken = false;
};
# hlint = {
# jailbreak = true;
# };
# barbies-th = {
};
# hlint = {
# jailbreak = true;
# };
# barbies-th = {
# broken = false;
# jailbreak = true;
# };
# Development shell configuration
devShell = {
hlsCheck.enable = true;
};
# What should haskell-flake add to flake outputs?
autoWire = [ "packages" "apps" "checks" ]; # Wire all but the devShell
};
# Auto formatters. This also adds a flake check to ensure that the
# source tree was auto formatted.
treefmt.config = {
projectRootFile = "flake.nix";
programs.ormolu.enable = true;
programs.nixpkgs-fmt.enable = true;
programs.cabal-fmt.enable = true;
programs.hlint.enable = false;
# We use fourmolu
programs.ormolu.package = pkgs.haskellPackages.fourmolu;
};
# Default package & app.
packages.default = self'.packages.compress;
apps.default = self'.apps.compress;
mission-control.scripts = {
hoogle = {
description = "Start Hoogle server for project dependencies";
exec = ''
echo http://127.0.0.1:8888;
hoogle serve -p 8888 --local;
'';
category = "Dev Tools";
};
# Development shell configuration
devShell = {
hlsCheck.enable = true;
haddocks = {
description = "make docs & serve them";
exec = ''
echo http://127.0.0.1:8887;
cabal haddock-project --executables --internal --hoogle || true;
python3 -m http.server -d haddocks 8887;
'';
category = "Dev Tools";
};
# What should haskell-flake add to flake outputs?
autoWire = [ "packages" "apps" "checks" ]; # Wire all but the devShell
};
# Auto formatters. This also adds a flake check to ensure that the
# source tree was auto formatted.
treefmt.config = {
projectRootFile = "flake.nix";
programs.ormolu.enable = true;
programs.nixpkgs-fmt.enable = true;
programs.cabal-fmt.enable = true;
programs.hlint.enable = false;
# We use fourmolu
programs.ormolu.package = pkgs.haskellPackages.fourmolu;
};
# Default package & app.
packages.default = self'.packages.compress;
apps.default = self'.apps.compress;
# Default shell.
devShells.default = pkgs.mkShell {
name = "haskell-template";
meta.description = "Haskell development environment";
# See https://zero-to-flakes.com/haskell-flake/devshell#composing-devshells
inputsFrom = [
config.haskellProjects.default.outputs.devShell
config.treefmt.build.devShell
];
nativeBuildInputs = with pkgs; [
];
};
# Default shell.
devShells.default = pkgs.mkShell {
name = "haskell-template";
meta.description = "Haskell development environment";
# See https://zero-to-flakes.com/haskell-flake/devshell#composing-devshells
inputsFrom = [
config.mission-control.devShell
config.haskellProjects.default.outputs.devShell
config.treefmt.build.devShell
];
nativeBuildInputs = with pkgs; [
];
};
};
};
}