The following code template, which is available on-line, is designed for constructing a single-file program in ATS:
(* ** ** A template for single-file ATS programs ** *) (* ****** ****** *) // #include "share/atspre_define.hats" #include "share/atspre_staload.hats" // (* ****** ****** *) // // please write your program in this section // (* ****** ****** *) implement main0 () = () // a dummy implementation for [main]