Final project of the Haskell Book
- To build
stack build
- To intepret
Main
module for incremental development
$ stack ghci --main-is fingerd:exe:fingerd
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
- Source code formatted by
brittany
. To specifybrittany
to be default code formatter with Haskell Language Server in VSCode, add this tosettings.json
:
"haskell.formattingProvider": "brittany",