Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The start of the great simplifying (hopefully)
Gonna try mono-morphising the Beam stuff and poly ... uh, morphising app-level stuff. There's more yet to do.
- Loading branch information
1 parent
20d0a92
commit 81ce1db
Showing
44 changed files
with
993 additions
and
1,076 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
.envrc | ||
.ghc.environment.* | ||
database/pgdata | ||
dist | ||
dist-newstyle | ||
logs | ||
result |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,6 @@ | ||
let | ||
compiler = "default"; | ||
|
||
nixpkgs = import ../nix/packages { | ||
inherit compiler; | ||
}; | ||
|
||
nixpkgs = import ../nix/packages; | ||
tools = import ./tools.nix nixpkgs; | ||
|
||
env = (import ../. { | ||
inherit compiler; | ||
}).env; | ||
package = import ../.; | ||
in | ||
nixpkgs.lib.overrideDerivation env (drv: { | ||
nativeBuildInputs = | ||
drv.nativeBuildInputs ++ | ||
tools; | ||
}) | ||
(nixpkgs.haskell.lib.addBuildDepends package tools).env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,4 @@ | ||
{ compiler ? "default" | ||
}: | ||
let | ||
nixpkgs = import ./nix/packages { | ||
inherit compiler; | ||
}; | ||
nixpkgs = import ./nix/packages; | ||
in | ||
nixpkgs.haskellPackages.callPackage ./package.nix {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ lib | ||
, fetchFromGitHub | ||
, ... | ||
}: | ||
self: | ||
super: | ||
let | ||
base-noprelude-source = fetchFromGitHub { | ||
owner = "haskell-hvr"; | ||
repo = "base-noprelude"; | ||
rev = lib.fileContents ./rev; | ||
sha256 = lib.fileContents ./sha; | ||
}; | ||
in | ||
{ | ||
base-noprelude = self.callPackage (self.haskellSrc2nix { | ||
name = "base-noprelude"; | ||
src = base-noprelude-source; | ||
}) {}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
e5aabbef8187cbc41a16b2565d93f9d7bc60d68e |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
0jj9z2jqcpmdn51mca7807gcym8k4sbd906z0ckr33vblkaa6vd2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
5604d871f6d1e7625e9ff25b7b6fe694d20aaa9f | ||
2489a213cdee6341de46a3aa015c35067f4d6076 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0av6i8mwx65znj6xii6c8znz4074n14r3v5imxbhypi88kv232hg | ||
1rv7xz5i0n8wfyzsz612yry2xsgp1hgp9m4pc95nfg5yp1481y97 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,16 @@ | ||
{ compiler ? "default" | ||
}: | ||
let | ||
haskellPackages = compiler: nixpkgs: | ||
if compiler == "default" | ||
then nixpkgs.haskellPackages | ||
else nixpkgs.haskell.packages.${compiler}; | ||
in | ||
import ./nixpkgs { | ||
config = { | ||
packageOverrides = nixpkgs: { | ||
haskellPackages = (haskellPackages compiler nixpkgs).override { | ||
overrides = self: super: | ||
(import ./beam nixpkgs self super) // | ||
(import ./validation nixpkgs self super); | ||
import ./nixpkgs { | ||
config = { | ||
packageOverrides = nixpkgs: { | ||
haskellPackages = nixpkgs.haskellPackages.override { | ||
overrides = self: super: { | ||
inherit (import ./beam nixpkgs self super) | ||
beam-core | ||
beam-postgres | ||
beam-migrate; | ||
inherit (import ./base-noprelude nixpkgs self super) | ||
base-noprelude; | ||
}; | ||
}; | ||
}; | ||
} | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
e0d250e5cf6d179e1ccc775472d89718f61fcfd1 | ||
2018654322acefa7e9fcbe45d2541489b0a88fdd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1iqpjz4czcpghbv924a5h4jvfmj6c8q6sl3b1z7blz3mi740aivs | ||
02n49f32cvrbzj938wlndiay6h1k2qbrz12j8gm58qj3vy8ig9c1 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.