1
1
mirror of https://github.com/srid/ema.git synced 2024-11-29 09:25:14 +03:00
Commit Graph

619 Commits

Author SHA1 Message Date
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
Sridhar Ratnakumar
873c53fab9 Parametrize SiteOutput
So that non-Asset outputs are possible (for composition).
2022-07-03 13:50:10 -04:00
Sridhar Ratnakumar
83302865e1 StaticRoute: reduce one argument in staticRouteUrl 2022-07-02 17:16:19 -04:00
Sridhar Ratnakumar
a1c7932c99 GenericRouteOpt: add defaults 2022-07-02 17:16:02 -04:00
Sridhar Ratnakumar
505168f783 subRoutesIso doesn't havae to be a class method 2022-07-02 14:11:41 -04:00
Sridhar Ratnakumar
192760d689 garnix: disable m1 shell (odd failure) 2022-07-02 11:34:52 -04:00
Sridhar Ratnakumar
05d410670f StaticRoute: derive Generic 2022-07-02 11:15:04 -04:00
Sridhar Ratnakumar
111d589122
Add GenericRoute r opts for customizing DerivingVia of routes (#110)
* Prototype DerivingVia type-level config

* Begin adding comments

* garnix note in README

* Port Generic.Exmaple to use newstyle

* Open the type-class, so users can customize deriving themselves

* Add GenericRouteOpts

* Expand documentation (API)

* cleanup exports, and naming
2022-07-02 11:07:49 -04:00
Sridhar Ratnakumar
1d67c1b85b
Revert "GHC 9.2.2 -> 9.2.3 (#109)" (#112)
This reverts commit 1959f780af.
2022-07-02 09:58:11 -04:00
Sridhar Ratnakumar
6010ef0acc
Build devShell in CI (#111)
* garnix: Add M1 shell

* fix shel
2022-07-02 09:46:17 -04:00
Sridhar Ratnakumar
1959f780af
GHC 9.2.2 -> 9.2.3 (#109) 2022-07-01 16:04:00 -04:00
Sridhar Ratnakumar
760fd79310 Replace Coercible with GIsomorphic 2022-07-01 12:46:21 -04:00
Sridhar Ratnakumar
672467dea8 refactor: split Sub.hs 2022-07-01 12:11:03 -04:00
Sridhar Ratnakumar
6f24227c65 refactor: split RGeneric 2022-07-01 11:54:56 -04:00
Sridhar Ratnakumar
25732cd4f0
HasSubModels automatic deriving ergonomics (#108)
`HasSubModels` can now be derived generically, or derived "via" WithSubModels. Just like `HasSubRoutes`. In the case of ambiguities use deriving via to explicitly specify the field name (see Ex04_Multi).
2022-06-30 19:32:15 -04:00
Sridhar Ratnakumar
0b011338c6 Add StaticRoute (#79)
From https://github.com/fpindia/fpindia-site/blob/master/src/FPIndia/StaticRoute.hs
2022-06-29 23:25:46 -04:00
Sridhar Ratnakumar
62f0d9adf1 Greatly strip down Encoder.hs exports
`prismRouteEncoder` can be used to create the removed encoders.
2022-06-28 21:11:27 -04:00