summaryrefslogtreecommitdiff
path: root/Hero
AgeCommit message (Collapse)Author
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-27Set subscription in user page, operator precedenceBen Sima
I'm still working on figuring out operator precedence with my custom operators. The normal precedences don't work well for writing code in a pipeline as I like, so I have to re-define the operators with my own fixity settings. This will take some fiddling to get right. The user subscription allows setting to "Free" only now. It's fine because I still need to do a design refresh on the pages I just made. One thing I noticed is that it's getting harder to make changes without breaking stuff, so I either need to make smaller incremental changes, or actually write some real tests. I'll probably write tests soon.
2021-01-22Property tests for calculateScoreBen Sima
2021-01-16Port Hero.Host to Biz.CliBen Sima
2020-12-24linting fixes and cleanupBen Sima
2020-12-05Renamespace Devalloc and QueBen Sima
Move them under the Biz root so that we know they are specific to Biz stuff. Biz is for proprietary stuff that we own. I also had to refactor the bild namespace parsing code because it couldn't handle a namespace with 3 parts. I really need to get that namespace library written and tested.
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-25bild: port to haskellBen Sima
2020-07-25hero: fix config thingBen 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
2020-07-17Revert "deps: update miso"Ben Sima
This reverts commit ca28f4a86b839d702bdaa70925884aa2bd5cf9ed. There seems to be a regression in miso where it doesn't load properly any more.
2020-07-14deps: update misoBen Sima
2020-07-12hero: put app routes behind authBen Sima
2020-07-12hero: move CanSnakeCase to AlphaBen Sima
2020-06-27hero: add @mcovino userBen Sima
2020-06-27hero: add skey to environmentBen Sima
2020-06-27hero: implement the basics of user loginsBen Sima
There's also a lot of refactoring/renaming in here, so the diff is really messy. The overall problem is that I've only ever added code, I've never gone back and reorganized/rearchitected stuff. So adding even small features is becoming an enormous effort. Anyway, this adds the basics of user auth. Next I need to add the auth checks for every route that needs it, and make sure everything is back to working correctly.
2020-06-12Reorganize a bunch of codeBen Sima
Nothing should be functioning differntly, just made it easier to work on.
2020-06-05Add user datatype to keepBen Sima
I also restructured some types so that I could grab a handle on the keep to close it on shutdown, otherwise the database would be locked and I can't do anything about it. This might mean I have to delete and start the database from scratch when I deploy, but that's okay because I haven't stored anything yet. I also renamed some stuff like 'deck' and 'beam' just for fun. I could make these into more general interfaces like I always planned to. Also I haven't really tested this yet, so... next commit will implement the user login.
2020-06-02Rename Hero.Database -> Hero.KeepBen Sima
I just like this better.
2020-06-02Fix layout of featured comicBen Sima
2020-06-02Initialize Hero databaseBen Sima
2020-05-02Auto-overlay niv sourcesBen Sima
This is somewhat experimental, the idea is automatically set the sources from my niv pinned deps. It seems to work, so I'll keep at it and see if I can improve it as issues come up.
2020-04-19Switch to niv for managing third party sourcesBen Sima
2020-04-15Lint fixes, also delete Biz.LanguageBen Sima
2020-04-15ReformattingBen Sima
Now I'm using ormolu instead of brittany for Haskell formatting now. Figured I should just make all of these big changes at once.
2020-04-15Re-namespacingBen Sima
Moving away from the DNS-driven namespacing toward more condensed names, mostly because I don't like typing so much.