- Install ghcup, a command line tool to manage haskell
- run
ghcup tui
- Install the tools to get it looking like this -- GHC 9.2.5, Cabal 3.6.2, HLS (haskell language server) 1.9.0, though realistically a more recent HLS and GHC should work (note the HLS powered though, definitely choose a GHC version with that).
There is a plugin for Haskell, https://github.com/haskell/vscode-haskell, but you'll want ghcup
installed first.
cabal build
cabal exec user-example
Main
contains the top level element and interpreterServer
is the finer parts of handling web and websocket requestsRouter
contains the route reducer, receiving an initial path then able to change it via eventsPages
contains the pages (just user creation and listing now)Services
contains the user service
Provided by https://hackage.haskell.org/package/fourmolu, configuration is in fourmolu.yaml
cabal install fourmolu
(this will take awhile, it's a big boy)fourmolu -i src
to format all files