Commit Graph

20 Commits

Author SHA1 Message Date
pta 41b526d375 Use "quot" to round negative ages towards zero
I was using "div" which rounds towards negative infinity, so negative
age differences of less than a year had -1 rather than 0 in the years
field.
2024-02-25 23:43:04 -05:00
pta c95b99dc3a Calculate ages at Caster value creation time and take date input 2024-02-25 22:21:38 -05:00
pta ecf82ac0a4 Document how to use the flake 2023-12-17 23:37:45 -05:00
pta d0704a26b9 Add lock file, making this a proper Nix flake 2023-12-17 22:19:28 -05:00
pta 65c028d714 Change links in table header from git repo to app page 2023-12-16 18:50:16 -05:00
pta 9992483542 Specify the README in cabal file 2023-12-13 10:50:13 -05:00
pta 9acc8d327b Trivial commit to try fixing the Nix flake 2023-12-13 10:21:08 -05:00
pta 13eead2bc1 Add birthday countdown and sortability 2023-12-12 17:22:51 -05:00
pta 05cc984037 Try making this a Nix flake 2023-12-12 17:20:51 -05:00
pta 06ec082225 Remove unneeded argument to upcomingBdays 2023-12-09 12:00:36 -05:00
pta b4b519dd95 Add function to find upcoming birthdays 2023-12-09 11:54:08 -05:00
pta 79cbcd6bbc Add countdown to next birthday, remove dependency on Reader monad 2023-12-09 11:52:13 -05:00
pta 2246d56d69 Generate and print list of this year's birthdays 2023-12-08 09:37:05 -05:00
pta 45a3903816 Explain how the web server finds the latest executable 2023-12-02 22:33:36 -05:00
pta 4a043cb723 Start using a CGI library
In preparation for implementing a form. I had to change the Html
generating code to render the page as a lazy bytestring rather than a
string, since the cgi library needs a bytestring to preserve unicode
characters.
2023-12-02 20:14:55 -05:00
pta 7621a05f82 Move all html generating code to Webpage module
Caster and Age data declarations were moved to their own module to share
with Webpage module. Cabal file informed of new modules.

I disabled warnings for missing type signatures in Webpage.hs because
Html type signatures are quite complicated. The library author
recommends this.  https://hackage.haskell.org/package/type-of-html
2023-12-02 17:15:13 -05:00
pta 9fbe19b4d2 Move definition of webpage to its own module 2023-12-02 14:21:58 -05:00
pta 79e29b6a39 Add links to the working web page and learning resources 2023-11-29 16:25:20 -05:00
pta 775e8c10ee Add HTTP header and charset attribute 2023-11-28 12:20:06 -05:00
pta cacc836535 Initial commit 2023-11-27 01:50:14 -05:00