1
1
mirror of https://github.com/srid/ema.git synced 2024-12-02 09:15:10 +03:00
Commit Graph

489 Commits

Author SHA1 Message Date
Sridhar Ratnakumar
05eea086b9 docs: Write start.md and tutorial.md 2022-06-10 16:38:36 -04:00
Sridhar Ratnakumar
4df4d09ec6 Add combineRouteEncoder
Also,

- rename mergeRouteEncoder -> eitherRouteEncoder
- drop the unused left/rightRouteEncoder
2022-06-09 17:59:41 -04:00
Sridhar Ratnakumar
d2ed188987 Add runSite_ 2022-06-08 17:41:28 -04:00
Sridhar Ratnakumar
89de619394 Export htmlSuffixPrism 2022-06-08 17:20:41 -04:00
Sridhar Ratnakumar
1e46e85cdf Expand changelog 2022-06-08 12:01:51 -04:00
Sridhar Ratnakumar
666bdc8cb5 Add timedot example 2022-06-08 12:01:45 -04:00
Sridhar Ratnakumar
620fb41cde Avoid runtime error with bad ctors (by using fallback) 2022-06-08 11:42:09 -04:00
Sridhar Ratnakumar
6b899012d4 Refactor 2022-06-08 11:32:38 -04:00
Sridhar Ratnakumar
a8bdffeb49 route: Disallow Foo_ style constructors during generic deriving 2022-06-08 11:00:22 -04:00
Sridhar Ratnakumar
460b3da070 Change generate log source to be consistent 2022-06-07 14:15:08 -04:00
Sridhar Ratnakumar
ffd25ad5a9 Simplify Generate.hs
The order of generation is now also changed; now in the same order as
`allRoutes`'s list.
2022-06-07 14:09:52 -04:00
Sridhar Ratnakumar
2175e2e8a7 docs: Start upgrading page 2022-06-06 11:33:41 -04:00
Sridhar Ratnakumar
931d997a0c Remove redundant constraints 2022-06-06 11:33:32 -04:00
Sridhar Ratnakumar
84a421011c Simplify runSite* family of functions 2022-06-06 11:33:25 -04:00
Sridhar Ratnakumar
0aea1474eb Add a default instance for Cli (live server, random port) 2022-06-05 22:20:52 -04:00
Sridhar Ratnakumar
90f6a05257 Add most trivial example, Ex00_Hello.hs 2022-06-05 21:46:53 -04:00
Sridhar Ratnakumar
c03a64acf7 Add LogSource to Ema.CLI.crash (and fix treefmt) 2022-06-05 21:33:53 -04:00
Sridhar Ratnakumar
86424d4173 Add Ema.CLI.crash
Use `crash` when you want to crash the program with an error message.
Resolves #80
2022-06-05 21:27:13 -04:00
Sridhar Ratnakumar
0110d3ca7b nix: Update all inputs 2022-06-05 21:27:01 -04:00
Sridhar Ratnakumar
9193549185 cli: Don't use a default for --port
Ref: https://github.com/srid/emanote/issues/294
2022-06-05 10:14:33 -04:00
Sridhar Ratnakumar
80ad7020e8 nix: Update haskell-flake 2022-05-30 19:04:49 -04:00
Sridhar Ratnakumar
36f7d649ff nix: Update haskell-flake, and nixpkgs 2022-05-30 18:50:27 -04:00
Sridhar Ratnakumar
fe695a1523 nix: Switch to srid/haskell-flake 2022-05-30 09:32:57 -04:00
Sridhar Ratnakumar
50d9499db1
Merge pull request #90 from srid/multisite-freeport
Use random port for live server, unless --port is passed
2022-05-28 08:58:50 -04:00
Sridhar Ratnakumar
5c5c523b55 Use random port for live server, unless --port is passed 2022-05-28 08:54:18 -04:00
Sridhar Ratnakumar
10dbf09826 haddock: document EmaSite 2022-05-21 11:04:51 -04:00
Sridhar Ratnakumar
453364cdac rename: Ema.Model -> Ema.Site 2022-05-21 10:53:30 -04:00
Sridhar Ratnakumar
15b79c1108 hlint: ignore infinitely suggestion 2022-05-21 10:53:12 -04:00
Sridhar Ratnakumar
ffa731838e nix: Update all inputs 2022-05-21 09:49:57 -04:00
Sridhar Ratnakumar
ac1e2b8bbd git: mark flake.lock as auto-generated 2022-05-21 09:48:24 -04:00
Sridhar Ratnakumar
80d93a5989 treefmt: format cabal file 2022-05-21 09:48:16 -04:00
Sridhar Ratnakumar
b5d18b60ed cleanup: unused pragmas 2022-05-21 09:48:05 -04:00
Sridhar Ratnakumar
41705a7889 cleanup: remove tmux script 2022-05-21 09:47:58 -04:00
Sridhar Ratnakumar
53bd5bfeea iso check: go back to original check logic 2022-05-16 21:41:09 -04:00
Sridhar Ratnakumar
58e0959c2e Fix hlint 2022-05-16 21:31:10 -04:00
Sridhar Ratnakumar
1e3881b70a iso check: foo/index.html must come first 2022-05-16 21:29:29 -04:00
Sridhar Ratnakumar
56d230ee3f iso checks: check foo.html ahead 2022-05-16 21:25:44 -04:00
Sridhar Ratnakumar
bb167fb186 Make route encoder check output legible 2022-05-16 21:19:52 -04:00
Sridhar Ratnakumar
84025f50cb Rename example modules appropriately 2022-05-16 20:30:31 -04:00
Sridhar Ratnakumar
4aa59c6574 Redundant constraint 2022-05-16 20:30:20 -04:00
Sridhar Ratnakumar
01a275fda4 Update changelog 2022-05-16 20:29:59 -04:00
Sridhar Ratnakumar
6f9151aab0 Add 'runSiteLiveServerOnly' 2022-05-14 11:11:03 -04:00
Sridhar Ratnakumar
70da02c78e cli: Split host/port parser 2022-05-12 21:03:25 -04:00
Sridhar Ratnakumar
e87a448bb5 Export host port cli parser 2022-05-11 20:15:52 -04:00
Sridhar Ratnakumar
46545c1ae0 Replace the two type class with a simpler 'EmaSite'
The siteInput/siteOutput methods also help, visually. An Ema site is
identified by a route that is connected (on left) to a site input
Dynamic and (on right) to the site output asset (usually HTML)
2022-05-10 21:23:47 -04:00
Sridhar Ratnakumar
2782054592 Update nixpkgs 2022-05-10 21:13:12 -04:00
Sridhar Ratnakumar
262724a40a Add .envrc 2022-05-10 21:13:08 -04:00
Sridhar Ratnakumar
215f156516 Add relude's hlint.yaml 2022-05-04 20:11:27 -04:00
Sridhar Ratnakumar
a8e344c0e8 Update nixpkgs, and use treefmt 2022-05-04 19:54:57 -04:00
Sridhar Ratnakumar
05c8a21273 Advance nixpkgs, and update lint-utils 2022-04-25 20:22:51 -04:00