This repository is a playground for me to learn FRP in Haskell with reflex. It is based on this tutorial.
Additionally, it also showcase:
- how to make haskell-language-server available in
ob shell
: see default.nix - how to integrate and use tailwindcss with reflex (based on the repository obelisk-tailwind-example)
- how to do some basic routing from the frontend
- how to call Javascript from Haskell
- how to access the local storage from Haskell
- a simple Tic Tac Toe game
Open a shell with the obelisk available:
$ ./shell-obelisk.sh
Run the web app with instant recompilation when any file is changed:
$ ob run
Then open http://localhost:8000 in your browser to see the app in action.
Create the android application:
$ nix-build -A android.frontend -o result-android
Plug your android phone and install the application (needs USB debugging):
$ ./result-android/bin/deploy