
- Prolog adventure game source code install#
- Prolog adventure game source code Patch#
- Prolog adventure game source code upgrade#
- Prolog adventure game source code registration#
- Prolog adventure game source code code#
Getting your $PATH correct can be tricky. The Glorious Glasgow Haskell Compilation System, version 8.10.4 When you do that and open a new shell, you should be able to do the following: $ which ghci The ghcup installer recommends adding source $HOME/.ghcup/env to your shell configuration (e.g. in ~/.bash_profile, ~/.bashrc, ~/.zprofile, etc).
Prolog adventure game source code install#
To ensure that these particular versions are installed and configured to be the default, you can run: $ ghcup install ghc 8.10.4 -setįinally, you will need to ensure that the binaries for these versions are on your $PATH. The versions of these tools in your package manager ( apt, homebrew, etc.) are likely different from our recommended versions! Therefore, we suggest that you manage these tools with ghcup. On various linux distributions like Ubuntu or Fedora, it may suggest a number of packages you can install with apt or yum - things like build-essential, libtinfo, libgmp, etc. On Windows, you can say yes to installing msys2. Ghcup may ask you to install additional packages for your system.
Prolog adventure game source code upgrade#
ghcup upgrade and ghcup list will help you track newer releases that may improve compatibility on M1. You’ll be fine without the language server - you’ll only miss some IDE features. If you are on Apple Silicon, things are a bit trickier! You will want to use ghc 8.10.7 and not bother yet with hls.
Prolog adventure game source code code#
Prolog adventure game source code Patch#
Newer patch releases improve Apple Silicon compatibility.) (If you must use newer versions in the 8.10 series things will generally work fine, modulo some hls issues.

We are using the primary Haskell distribution, GHC. You can install VS Code as their website suggests, or as your package manager allows (e.g. You are free to edit code however you want, but we have found that Visual Studio Code works well with some language-specific extensions like However, you can also just work on single files and use ghci or stack ghci or cabal repl (as in the section below on Haskell Interaction). There are additional functions cpsc312_new_stack and cpsc312_new_cabal to make new projects should you need to. When that happens (and you’ll know because things will act funny) just run cpsc312_reinit & cpsc312_update.

This script puts the sandboxed ghc installations and package databases on the scratch drive, so periodically they’ll be wiped. It will take a while to install all the utils required, so be patient or open it in a tmux session! When it finishes, you’ll find cabal, doctest, hlint, and ghcid on your path. Then open a new shell (or SSH in again) and run cpsc312_init & cpsc312_update to initialize your dev environment. Add the line source ~cs-312/public/cpsc312_profile.sh to the bottom of your ~/.bash_profile. We have a magic Bash script that you can use on CS servers to make development easier. (Please note that at the time of writing an older version of swipl is installed. (Once you have it set up, ssh will log you in.) For Haskell, you can run ghci from the command-line. Log in remotely to the students.cs.ubc.ca UNIX servers. Though we recommend setting up a development environment on your local computer, you are able to develop and run Haskell and Prolog code on the department-provided servers.

Should we talk about, replit, or some other useful resource, reference, or slice of awesomeness?

More Let us know if there’s something else that should be here.
Prolog adventure game source code registration#
Panopto Lecture recordings (which can also be streamed almost-live)ĭepartment UNIX servers The easiest way to get started with ghci (Haskell) and swipl (Prolog)Ĭanvas Grades (supplementing PrairieLearn), password-protected materials, Zoom for synchronous/live online class, maybe iclicker registration Piazza Announcements, discussion, private communication with staff (but use e-mail if you’re uncomfortable using Piazza) Here are the key online systems (besides this website!) that we’ll use in the course in rough order of how often you’re likely to use them: PrairieLearn Most assessments, including quizzes, assignments, and in-class exercises.
