Sridhar Ratnakumar
d719b0bbd7
Fix html warnings
2022-08-08 11:55:29 -04:00
Sridhar Ratnakumar
dc2585d6fb
nix: use relude from nixpkgs
2022-08-08 11:52:52 -04:00
Sridhar Ratnakumar
b052ad1b2f
Merge pull request #127 from EmaApps/js-events
...
websocket shim: Trigger events
2022-08-07 12:56:15 -04:00
Sridhar Ratnakumar
870d486a03
Add DOM events for the 3 Ema shim stages
...
Ref: https://github.com/EmaApps/ema/issues/69#issuecomment-1198463127
2022-08-07 12:39:30 -04:00
Sridhar Ratnakumar
5ef1b4b397
docs: Finish composing page; resolves #38
2022-08-07 12:36:02 -04:00
Sridhar Ratnakumar
194de6cd6d
docs: don't expand sidebar by default
2022-08-07 12:20:34 -04:00
Sridhar Ratnakumar
6e618ae081
Merge pull request #81 from EmaApps/multisite
...
Multisite rewrite
2022-08-07 11:42:50 -04:00
Sridhar Ratnakumar
e88a5d3e71
Uninline JS and HTML ( #126 )
...
* 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
2022-08-07 11:39:10 -04:00
Sridhar Ratnakumar
740fdf2796
treefmt: re-enable cabal-fmt
2022-08-07 10:55:34 -04:00
Sridhar Ratnakumar
63c7ce208e
Misc changes
2022-08-07 10:55:25 -04:00
Sridhar Ratnakumar
df6dcdcf32
Format cabal file
2022-08-06 16:58:39 -04:00
Sridhar Ratnakumar
f11077c3f2
Drop vscode tasks.json
2022-08-06 16:58:19 -04:00
Sridhar Ratnakumar
cf582e7dc6
nix: fourmolu doesn't require the workaround
2022-08-06 14:06:04 -04:00
Sridhar Ratnakumar
52b420a924
Fix nix shell build by using fourmolu
2022-08-06 14:00:16 -04:00
Sridhar Ratnakumar
a13df718e7
Release version and changelog
2022-08-06 13:59:04 -04:00
Sridhar Ratnakumar
172a84cc79
Update nix inpugs (ghc 9.2.4) ( #125 )
2022-08-06 12:53:56 -04:00
Sridhar Ratnakumar
4af16f7011
Make check errors legible; fixes #121
2022-08-06 12:53:24 -04:00
Sridhar Ratnakumar
1404aa74e9
docs: Add blurb to composing page
2022-08-06 12:28:21 -04:00
Sridhar Ratnakumar
73c3e6c346
docs: Write upgrade page
2022-08-06 12:19:36 -04:00
Sridhar Ratnakumar
e465275c19
docs: Write topics
2022-08-06 12:15:42 -04:00
Sridhar Ratnakumar
cb47ab3848
docs: Write model and site
2022-08-06 12:01:56 -04:00
Sridhar Ratnakumar
ca3fb8ef10
docs: Write guide -> route
2022-08-06 11:28:05 -04:00
Sridhar Ratnakumar
8853cb9788
docs: Update tutorial series
2022-08-06 10:50:09 -04:00
Sridhar Ratnakumar
94b19ea2a0
Disable tests on 9.0
2022-08-02 19:05:10 -04:00
Sridhar Ratnakumar
7bb276f46b
Merge pull request #124 from EmaApps/multisite-siteOutputIO
...
Enable IO in `siteOutput`
2022-08-02 19:00:56 -04:00
Riuga
d6a556957e
Testing Plan for Type Errors & (Basic) Type Errors Test Suite ( #122 )
...
+ 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>
2022-08-02 18:59:32 -04:00
Sridhar Ratnakumar
fcba114847
Allow IO in siteOutput
2022-08-01 16:52:41 -04:00
Riuga
e6df45a7ac
Vanilla CSS Status Indicator ( #123 )
...
* 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>
2022-07-28 12:02:35 -04:00
Riuga
67da7235a1
Static Verification of Errors in Generic Derivation of (HasSubModels, IsRoute) ( #120 )
...
* Added type-errors-pretty dependency
* Implemented static verification of subroutes & submodels
* Introduce HasAnyT
Co-authored-by: Sridhar Ratnakumar <srid@srid.ca>
2022-07-20 11:32:42 -04:00
Sridhar Ratnakumar
3cffc1c9e8
Clarify eitherPrism requirements
2022-07-19 09:43:07 -04:00
Sridhar Ratnakumar
89ef58cebe
docs: Write 03-dynamic.md
2022-07-18 16:44:56 -04:00
Sridhar Ratnakumar
fa040b0ce7
Finalize the naming/types of IsRoute
class ( #119 )
...
* 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
2022-07-18 12:27:07 -04:00
Sridhar Ratnakumar
d58330f477
GHC 9.2.3 ( #118 )
...
* Update nixpkgs
* nix: use nixpkgs-unstable (advances +2 days)
2022-07-17 15:11:52 -04:00
Sridhar Ratnakumar
51b0587db1
readme: Update Hacking section
2022-07-17 11:12:36 -04:00
Sridhar Ratnakumar
11f2db017a
readme: Add instruction to run ./docs
2022-07-17 11:04:50 -04:00
Riuga
87eb56c8ba
TH Route Deriving & Examples ( #114 )
...
Add `deriveRouteTH` as a TH alias for the DerivingVia syntax. Avoids having to know about Has* classes, mainly at this point.
2022-07-15 16:15:05 -04:00
Sridhar Ratnakumar
bd0bbd51fc
..
2022-07-15 10:41:28 -04:00
Sridhar Ratnakumar
f8f143fd5c
03: csv part
2022-07-14 18:21:23 -04:00
Sridhar Ratnakumar
7bf4f5435e
Write 02-model
2022-07-14 17:56:59 -04:00
Sridhar Ratnakumar
b4be5d872a
docs: tutorial: write 00 and 01
2022-07-14 17:43:11 -04:00
Sridhar Ratnakumar
b5d3831554
docs: re-org
2022-07-14 16:51:56 -04:00
Sridhar Ratnakumar
f622cc22bd
docs: Tutorial will be mood tracker
2022-07-14 16:51:50 -04:00
Sridhar Ratnakumar
29f0c73d6a
Prevent live server from serving root files
...
Ref: https://github.com/fpindia/fpindia-site/issues/23
2022-07-05 11:31:50 -04:00
Sridhar Ratnakumar
91d1221d3e
doc: initial skeleton
2022-07-05 11:29:38 -04:00
Sridhar Ratnakumar
db25590aa2
doc: tutorial series sketch (remove old one)
2022-07-05 10:31:14 -04:00
Sridhar Ratnakumar
8a2ee67498
doc: misc
2022-07-05 10:18:29 -04:00
Sridhar Ratnakumar
7e5b3c3134
Comments and stuff
2022-07-05 10:15:20 -04:00
Sridhar Ratnakumar
3040d60af0
MR: add instances
2022-07-04 10:41:47 -04:00
Sridhar Ratnakumar
929ebf6e7b
Add MarkdownRoute
(extra) ( #113 )
...
* WIP: Add MarkdownRoute.hs w/ pandoc
* finish MarkdownRoute
* exportgs
2022-07-03 17:25:50 -04:00
Sridhar Ratnakumar
70885569b2
StaticRoute: export constructors
2022-07-03 16:45:05 -04:00