StringCvt.cs with regex matching

Thomas Logan <[email protected]> Sun, 16 Oct 2016 18:54:40 -0400
Newsgroups gmane.comp.lang.ml.mlton.user
Message-ID <CAHQ_4ZE+ZdN32iA4NY6TJQVPK9R+XsYscyX6JPP_bw7WkH_97Q@mail.gmail.com>
I'm using StringCvt.scanString for regex matching, which requires a
StringCvt.cs, and thus the match_tree is required to use StringCvt.cs.  The
type checker won't allow using StringCvt.cs as an int.  Is there a way to
convert it to an int?

Error: ...
  Case object and rules disagree.
    object type:  (_ * {pos: [StringCvt.cs], ...} MatchTree.match_tree)
option
    rules expect: (_ * {pos: [int], ...} MatchTree.match_tree) option
    ...


Thanks.

Thomas

-- 
You received this message because you are subscribed to the Google Groups "MLton-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot

_______________________________________________
MLton-user mailing list
[email protected]; [email protected]
https://lists.sourceforge.net/lists/listinfo/mlton-user