![]() ![]() “sr” stands for “Stack Root” and is also the location where stack stores data for its own use (for example, its global configuration file, config.yaml).īy now, you must have guessed the problem: the default configuration of stack on Windows is bad: it clogs the c:drive, and if you want to conserve space there, you’ll need to do something. What about the various packages that stack downloads? Where do they go? Sorry, you’ve got bad news there too: they get into a default location “c:\sr”: yes, again in the c:drive. Ok, assume that you are still ok with this (afterall, toolchains are not downloaded everytime, and do not grow in size!). However, in its first-time usage, “stack” automatically downloads the GHC toolchain, and then installs the same in a default location (on Windows, this default location is AppData\local, again in C: drive). Using stack, for example, you can start the ghci - i.e., the interactive prompt of Haskell. Stack looks like doing more than being just a “package manager”. ![]() ![]() Then, downloaded the windows version of stack, and installed the same at its default location (as recommended by the guide). So, decided to uninstall the Haskell Platform (this step was not needed, but, yes, wanted to start “from scratch”). That is when I checked out about “stack”, and its advanced package management capabilities. That complained again with some other dependent library. This simply complained that the “profiled” version of its dependent library had to be installed. For the first time, I used the command “cabal install” to install the profile-versions of the library: cabal install -p regex-posix -reinstall Profiling Haskell programs requires that the libraries that they depended on needed the “profiler” versions (i.e., libraries with profile symbols). And, this is where was my first roadblock. Now, a bit more further from where I started, I began moving from “writing a Haskell program” to “profiling the same”. The installation also included the Haskell Stack (bundled), and also included cabal.Īnd then I went ahead learning Haskell, with all its niceties. When I first started with Haskell, I went the route of installing “ Haskell Platform” which comes, as it claims, “with batteries included”: GHC and its related libraries included. ![]()
0 Comments
Leave a Reply. |