/Haskell-Book-Final-fingerd

"Haskell Programming from First Principles" Final Project `fingerd`

Primary LanguageHaskellBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

fingerd Daemon

Final project of the Haskell Book

Installation

  • To build
stack build
  • To intepret Main module for incremental development
$ stack ghci --main-is fingerd:exe:fingerd

Sample Usage

After stack build successfully, to run debug server

$ # In a Terminal window
$ sudo `stack exec which debug`
$ # In other Terminal window
$ telnet localhost 79
$ # Type something here, it will be echoed in `debug` server stdout
$ # Ubuntu 20.04
$ finger mnhthng@localhost
Login: mnhthng
Name: mnhthng
Directory: /home/mnhthng
Shell: /bin/zsh 

Side-notes

  • Source code formatted by brittany. To specify brittany to be default code formatter with Haskell Language Server in VSCode, add this to settings.json:
"haskell.formattingProvider": "brittany",