summaryrefslogtreecommitdiff
path: root/Hero/Host.hs
AgeCommit message (Collapse)Author
2021-11-26Automatically detect Haskell dependenciesBen Sima
This parses the files contents for imports, then uses ghc-pkg to lookup the package that provides the module. Now I can do that analysis in Haskell instead of nix, which is much easier to code with.
2021-11-26Upgrade to nixos-21.05Ben Sima
Getting me closer to the latest GHC. This release also includes my own packages that I submitted some time ago. GHCJS is not present in 21.05 for some reason, but I think it's back in master, so I might do another upgrade soon, but for now I just disabled my GHCJS support. I'm not really using it anyway. I also had to bring it string-quote, update nixos-mailserver, and a few other things.
2021-02-17Fixup some modulesBen Sima
2021-02-05Add 'tidy' to PlanBen Sima
This is supposed to be how to cleanup the database and any other local files. Should only be used before/after test, so maybe I can find a way to enforce this constraint somehow in the code.
2021-01-29Lint 'return' into 'pure', replace bind operatorBen Sima
2021-01-22Property tests for calculateScoreBen Sima
2021-01-16Port Hero.Host to Biz.CliBen Sima
2020-12-24linting fixes and cleanupBen Sima
2020-11-18Extend bild to nix targets properlyBen Sima
Also had to capitalize some stuff, and move some nix files around and rename the metadata directive from 'exe' to 'out' because that just makes more sense, and fix some compiler errors. But now bild treats both nix and hs files as buildable things. So that's cool. One interesting example is Biz/Pie.{nix,hs} - I can either create a dev build of the hs file with ghc, or I can create a fully-encapsulated nix build. Its nice to have both options because a dev build with ghc takes half the amount of time, and I can rely on my locally cached hi and ho files. I think this shows the power of bild, but also can be a somewhat subtle thing. The issue really is with the separate command calls in nix builds vs dev builds. I figure there are a few ways to fix this: 1. Try to use bild inside the nix rules. That could be interesting, but could also lead to some weird behavior or worm holes forming. 2. Extract the command line invocation into a separate file, some kind of really simple template that gets pulled into both programs. It is important to consider that in the future I might want to have bild do a module-by-module nix build of programs, but I'm not sure how that would effect my choice here.
2020-10-13Move nix files into Biz.Bild namespaceBen Sima
2020-10-13hero: renamingsBen Sima
Model -> Form Action -> Move Page -> PageNumber
2020-07-26dev: move _{bild,keep,skey} to _/{bild,keep,skey}Ben Sima
2020-07-25bild: support incremental compilationBen Sima
Closes https://github.com/bsima/biz/issues/9
2020-07-25hero: rename Assets -> Pack and lint fixesBen Sima
2020-07-24hero: working authenticated api callsBen Sima
2020-07-19hero: rename stuff to new structureBen Sima
Working toward https://github.com/bsima/biz/issues/5