Search code examples
macoshaskellosx-snow-leopardhaskell-platformnon-admin

I need a way to run Haskell code without any install on a Mac


I enjoy developing in Haskell, but am presently confronted with a challenge. At my place of education, I don't have administrative rights on my account. I want to debug/test while there. I need a way to run Haskell code without installing haskell-platform or ghci or anything else requiring of an administrative level of privilege. For instance, a web site which will run haskell code (abeit limited to not include file access of course) or a java utility (or standalone .app, though java is preferred due to the nature of the "parental controls"), or something else I haven't thought of. Source or compiled Java, Flash, and source code in Ruby or Python are preferred to native code. This is on Mac OS X 10.6, for reference.


Solution

  • You just need to install homebrew, which you can do without root rights if you do so in your home directory. You can then brew install cabal-install which will automatically install cabal and ghc, or brew install stack to install stack.