@@ -7,8+7,7 @@ Code to solve the [Advent of Code](http://adventofcode.com/2020/) puzzles. This
[Learn you a Haskell](http://learnyouahaskell.com/chapters), [Introduction to Haskell 98](https://www.haskell.org/tutorial/index.html), and [Hackage](https://hackage.haskell.org/) are good resources.
[Learn you a Haskell](http://learnyouahaskell.com/chapters), [Introduction to Haskell 98](https://www.haskell.org/tutorial/index.html), and [Hackage](https://hackage.haskell.org/) are good resources.
-The [Stack documentation](https://docs.haskellstack.org/en/stable/README/) and [How I Start: Haskell](http://howistart.org/posts/haskell/1/) are good sources of using the tools.
-
+The [Cabal user guide](https://cabal.readthedocs.io/en/latest/index.html) and [How I Start: Haskell](http://howistart.org/posts/haskell/1/) are good sources of using the tools.
# Toolchain
# Toolchain
@@ -18,6+17,8 @@ Install Ghcup following [the instructions](https://www.haskell.org/ghcup/install
source /home/neil/.ghcup/env
```
source /home/neil/.ghcup/env
```
+and then set the default GHC to use with `ghcup set ghc 9.0.1` .
+
Install [Haskell Language Server](https://haskell-language-server.readthedocs.io/en/latest/configuration.html) for Sublime Text
Install [Haskell Language Server](https://haskell-language-server.readthedocs.io/en/latest/configuration.html) for Sublime Text
@@ -36,7+37,7 @@ Modify the `advent-of-code21.cabal` file as needed, such as updating the Cabal v
## Creating subsequent days
## Creating subsequent days
-Each day lives in a separate directory, with its own `package.yaml` file and code in the `src` directory. (I based this configuration from [mstksg's setup](https://github.com/mstksg/advent-of-code-2018).)
+Each day lives in a separate directory, with code in the `src` directory.
-For Cabal, look at [profiling with Cabal sandboxes](https://nikita-volkov.github.io/profiling-cabal-projects/)
+Generate the profile graph with
+```
+hp2ps -M advent01.hp
+```
-# Packages
-Stack is using the [14.16-lts resolver](https://www.stackage.org/lts-16.25) for packages, so make sure you read the [correct documentation for the packages included in it](https://www.stackage.org/lts-16.25/docs).