CyBeRkId2002 Posted October 16, 2024 Posted October 16, 2024 Morning all, As part of the OCR A-Level spec students are supposed to have experience in coding in Haskell. I know there used to be a full package with IDE, but think this has now been abandoned. I have been trying to get this working in Visual Studio Code for about a week now (along with a way of easily deploying) but have been hitting wall after wall. I wondered if anyone had deployed this in a classroom environment and if so whether you could share your experience and tips. Thanks, Michael
DWilson1997 Posted October 16, 2024 Posted October 16, 2024 Similar situation here. We have been looking at trying to deploy it with PowerShell via InTune however the only way we can seem to get it to work is by the user running the PowerShell script - which we block.
howartp Posted October 16, 2024 Posted October 16, 2024 Wow, I thought i'd seen/heard the last of Haskell when I graduated 19 years ago! I'm an accomplished programmer but hated Haskell!
mavhc Posted October 16, 2024 Posted October 16, 2024 Wow, I thought i'd seen/heard the last of Haskell when I graduated 19 years ago! I'm an accomplished programmer but hated Haskell! It's still just as popular as ever
mcolbourn Posted October 16, 2024 Posted October 16, 2024 I am watching this thread with interest as our Head of Computer Science has put in a ticket about this just yesterday.
Reverend_Dan Posted October 16, 2024 Posted October 16, 2024 Wow, I thought i'd seen/heard the last of Haskell when I graduated 19 years ago! I'm an accomplished programmer but hated Haskell! Snap but for me it was 2000 when I graduated
dmj Posted October 16, 2024 Posted October 16, 2024 is this actually in the spec? Could someone point me to it as I'd love to see the exam board justification. Just seems an odd choice when Computer science teachers are in a shortage they would choose a language with half a percent market share. Perhaps easier for teachers with NO programming experience to pick up - and fewer examples to 'copy' from the internet* * a major part of a professional developers time is spent on doing exactly this.
mavhc Posted October 17, 2024 Posted October 17, 2024 don't see it in OCR, it's in AQA though. The following is a list of functional programming languages that could be used: • Haskell • Standard ML • Scheme • Lisp. Other languages with built-in support for programming in a functional paradigm as well as other paradigms are: • Python • F# • C# • Scala • Java 8 • Delphi XE versions onwards • VB.NET 2008 onwards. Given you're only really doing map/reduce and some list stuff doesn't matter what language, point is it's useful in many languages these days, as shown in the second list, pure functions are good, map/reduce is good, functions calling functions is good
CyBeRkId2002 Posted October 18, 2024 Author Posted October 18, 2024 Apologies. It is AQA we are use! Sorry for the confusion. @mavhc - Issue rolling out with VSC is largely around the number of pre-requisites, and their difficulty to get running in a shared user environment or pushed out systematically. My understanding is that: GHCUP is needed to install the language compiler, Code Runner is needed to run within the IDE, if pushing out GHCUP using a software deployment method it will only install the PATH variable to the local user Lots and lots of hurdles to try and get it working. I know nothing about any of the others above but I suspect they may be a no-go as the teacher has to have some level of understanding of the language, which leads me back to my original question... Has anyone managed to get it working?
mavhc Posted October 18, 2024 Posted October 18, 2024 (edited) So 3 parts to installing it 1. vscode itself 2. vscode extensions 3. Haskell itself, which may want Cabal (package manager) and Msys2 (for compiling things on Windows) VSCode, GHC, Cabal and Msys2 all have chocolatey packages, so first test if they will install for all users. GHC says use Package Parameter /globalinstall VSCode extensions can be installed for all users, or stored on a network drive, https://github.com/Microsoft/vscode/issues/56614#issuecomment-697961001 Edited October 18, 2024 by mavhc
mavhc Posted October 18, 2024 Posted October 18, 2024 Choco has installed GHC in c:\tools\ghc-9.8.2 with read acl for users, write for admin as normal, need to add it to SRP. Installing as an admin user has set the path only for that user though, will test installing as system Cabal has installed per user though, wonder if that matters VSCode is fine, so that's good Choco installed vscode for all users
mavhc Posted October 18, 2024 Posted October 18, 2024 Yeah, need to fix the PATH, but at least GHC is installed (did need 6GBs of space, 3 for installer, 3 to install, then deletes the installer), Cabal hasn't installed, not sure if needed
enjay Posted November 19, 2024 Posted November 19, 2024 Yeah, need to fix the PATH, but at least GHC is installed (did need 6GBs of space, 3 for installer, 3 to install, then deletes the installer), Cabal hasn't installed, not sure if needed How did you fix the path? Our students can't run PowerShell so I'll need to run it as admin.
mavhc Posted November 19, 2024 Posted November 19, 2024 run a script as system user on startup using a gpo or try https://robbiecrash.me/set-custom-path-variables-by-gpo/
enjay Posted November 21, 2024 Posted November 21, 2024 run a script as system user on startup using a gpo or try https://robbiecrash.me/set-custom-path-variables-by-gpo/ Can you share the script you're using?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now