A patch and emacs lisp for SML# compiler to show a type of expression.
Standard ML Shell C Assembly OpenEdge ABL Ruby Other
Latest commit 2dfc621 Jul 10, 2012 @mzp add README
Failed to load latest commit information.
elisp add example Jul 10, 2012
example add example Jul 10, 2012
misc fix image Jul 10, 2012
patches add stuff for README Jul 10, 2012
smlsharp-1.0.3 add annot dump Jul 9, 2012
.gitignore update ignore files Jul 10, 2012
README.markdown add README Jul 10, 2012


SML# + annot


'SML# + annot' is a patch and Emacs lisp for SML# compiler to show a type of an expression.


Supported version

  • v1.0.3



Downlad SML# compiler and install dependencies library. See http://www.pllab.riec.tohoku.ac.jp/smlsharp/.

Download a proper version patch from https://github.com/mzp/smlsharp-annot/tree/master/patches.(if you use 1.0.3, download 'PATCH-1.0.3'.)


$ tar xvzf smlsharp-xxx.tar.gz
$ cd smlsharp-xxx
$ patch -p2 < path/to/patches/PATCH-xxx


$ configure # with some options
$ make minismlsharp
$ make depend
$ make # and wait for a long time
$ make install

Install Emacs lisp

Before this, install sml-mode(http://www.iro.umontreal.ca/~monnier/elisp/)

Download https://github.com/mzp/smlsharp-annot/blob/master/elisp/smlsharp.el and put load-path.

And add following lines to .emacs.

(require 'sml-mode)
(require 'smlsharp)
(define-key sml-mode-map "\C-ct" #'smlsharp-query-type)


Compile a file with annot option.

$ smlsharp -d annot=yes fact.ml


Copyright 2012- MIZUNO Hiroki(mzp)

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at


Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.