Assuming your students are logged into the same machine you should be able to use the STACK_ROOT environment variable <https://docs.haskellstack.org/en/stable/GUIDE/#setting-stack-root-location>. You should be able to use OS permissions to prevent write access to a particular user.
-- You received this message because you are subscribed to the Google Groups "haskell-stack" group. To unsubscribe from this group and stop receiving emails from it, send an email to haskell-stack+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/haskell-stack/CAMP6nJz555VAg4URKPAugtv-mn6DPWe5mu%2BkoOS8vdpZ1Pciwg%40mail.gmail.com.