Jump to content

Recommended Posts

Posted

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

Posted
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.
Posted
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

Posted

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.

Posted

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

Posted

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?

Posted (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 by mavhc
Posted

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

Posted
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
  • 1 month later...
Posted
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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...