Skip to content

Instantly share code, notes, and snippets.

@winny-
Created February 13, 2018 20:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save winny-/3630f775151383940e986a66e3a50076 to your computer and use it in GitHub Desktop.
Save winny-/3630f775151383940e986a66e3a50076 to your computer and use it in GitHub Desktop.

Using SML and Scala

Using SML

Installation

Use SMLNJ.

Getting line editing on Linux & Mac OS X

Install the rlwrap from your package manager. Prepend rlwrap to your invocation of sml like so: rlwrap sml.

Linux

Install package smlnj, and run sml from the shell.

Mac OS X

  1. Install Command Line Tools (CLT) for Xcode: xcode-select --install
  2. Run:
    /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
        
  3. Check your install with brew doctor
  4. Install SMLNJ with brew install smlnj

Now you should be able to run sml from the shell.

Windows

Visit the SMLNJ downloads page, click on “files” next to the most recent release, then scroll down to the bottom. Download and run the MS Windows Installer (*.msi file). Run “Standard ML of New Jersey” from the start menu.

Documentation

Using Scala

Linux

Mac OS X

Windows

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment