title: ML error: replacing DARROW with LPAREN
body: <pre><code>fun make_alt_record (stringlists, {x, y, z}) =
      case generate_alts (stringlists, x) of
      [] =&gt; {x, y, z}
        | alt::stringlists' =&gt; {name, y, z} 
  </code></pre>
  
  <p>generate_alts consumes a string list list and a string, and produces a string list. 
  make_alt_record is supposed to generate a new record.  </p>
  
  <p>Instead it generates errors, which are as follows: </p>
  
  <pre><code>hw2provided.sml:48.6-48.8 Error: syntax error: replacing  DARROW with  LPAREN
  hw2provided.sml:49.23-49.25 Error: syntax error: replacing  DARROW with  AS
  hw2provided.sml:65.1 Error: syntax error found at EOF
  </code></pre>