-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multisite rewrite #81
Conversation
Gotta simplify the typeclass and rethink it more in order to be able to have composable sites in Ema. |
|
17d3245
to
58b7fee
Compare
362e045
to
4845f8e
Compare
* Update nixpkgs * nix: use nixpkgs-unstable (advances +2 days)
* Rename allRoutes -> routeUniverse Because, it is consistent with routeEncoder. All types/methods are now prefixed with "route": - RouteModel - routeEncoder - routeUniverse * Drop RouteEncoder, exposing the underlying prism (albeist as Prism_ out of necessity) * rename module names as well * Even mkRoutePrism is redundant; use toPrism_ Especially it puts the model argument in the function argument itself, just like routeUniverse. * Drop applyRoutePrism (fromPrism_ is good enough) * Extract eitherPrism * Expose giso * Drop singletonRoutePrism (this is just "only" from optics-core) * Update docs
… IsRoute) (#120) * Added type-errors-pretty dependency * Implemented static verification of subroutes & submodels * Introduce HasAnyT Co-authored-by: Sridhar Ratnakumar <srid@srid.ca>
* Rewrote tailwind css as inline vanilla css * Explicitly set font-size, tab-size, line-height * Add box-sizing + adjust width/height This will subtract border and padding from the element width/height making it consistent across different resolutions. * Link to original version * Add to changelog Co-authored-by: Sridhar Ratnakumar <srid@srid.ca>
+ Added test-suite `test-type-errors` + Refactored default-extensions so they can be reused via import syntax Co-authored-by: Sridhar Ratnakumar <srid@srid.ca>
Enable IO in `siteOutput`
Documentation ( #121 is the only task left I think for this PR. |
Here's the blog post draft: https://github.com/srid/srid/pull/1/files Feedback is most welcome. I'd like to release it tomorrow possibly. |
* Move indicator HTML to its own file * move the shim too * undo NeatInterpolation escapes * Move the error message to its own file * Have bin/run reload on ./www changes * Update cabal file
Merged to |
For #75
gRouteEncoder
(Add generic deriving #76 )CanRender
instances)Ex04_Multi.hs
be simplified in terms of (not directly using)MultiRoute
?[ ]Dynamic
loggingIsRoute
deriving ergonomics and customizability (including support for non-html routes?) Use https://github.com/fumieval/deriving-aeson typesRouteModel
types #92HasSubModel
DerivingVia forHasSubModels
and, potentially, generic deriving #107unionmount
to work with new LVar interface inSite
model patcher change Api: Non-empty LVar unionmount#1