Special assignment for the functional programming course: A DNS server made in Haskell
These instructions will install the system in your local machine.
-
Clone the repository
$ git clone https://github.com/juanmbellini/haskell53.git
-
Install Stack if you haven't yet
$ brew install stack
Check here for more information on how to install Stack.
To build the project, execute the following commands.
$ cd haskell53 # Or project's root directory
$ stack setup
$ stack build
Note: The stack setup
command installs an isolated copy of GHC for the project.
To run the project, execute the following command (after building, previous section). You can set where the config file is located. Note that it must be a JSON file.
$ cd haskell53 # Or project's root directory
$ stack exec haskell53-exe [config-file-path.json]
You can install the system in your computer in order to execute it without calling stack
.
$ cd haskell53 # Or project's root directory
$ stack install
After installing, you can execute it like this:
$ haskell53-exe [config-file-path.json]