Skip to content

Latest commit

 

History

History
executable file
·
46 lines (33 loc) · 883 Bytes

README.md

File metadata and controls

executable file
·
46 lines (33 loc) · 883 Bytes

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",