This project serves as a companion codebase for Stack Builder's blog post "Creating a GUI application in Haskell."
For installation instructions of C libraries required by Gtk2Hs and haskell-gi, please refer to the Gtk2Hs Github Repository. The installation process may vary depending on your operating system, so make sure to follow the instructions specific to your platform.
WARNING: This setup is incompatible with ARM architectures.
-
Clone the Repository: Clone this repository to your local machine and navigate to the project directory.
git clone https://github.com/stackbuilders/blog-code.git cd haskell/gtk-gui/ -
Build the Project: Use Stack to build the project.
stack build
-
Run the Project: Run the project with the following command:
stack exec gtk-gui-exe