Hi all,<br><br>The constructor names in Haskell need to obey one of the two following rules:<br> - either starts with a capital letter and contains alphanumeric characters afterwards, (including _ I guess)<br> - or starts with a colon (:) and only contains symbols afterwards<br clear="all">
<br>The first one is used Prefix by default, and the second ose is used infix by default.<br><br>What stops us from allowing alphanum characters appear in the Infix version (after the colon)? Can't it be relaxed to only start woth a colon?<br>
<br>So I want to be able to say something like:<br><br><span style="font-family: courier new,monospace;">data Expr = Expr :< Expr -- checks for LT betwen two Expr's</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> | Expr :<2 Expr -- a different implementation of the same thing maybe</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> | Expr :<veryfast Expr -- and the veryfast implementation of it</span><br style="font-family: courier new,monospace;">
<br>(just a silly example I could think of now.)<br><br style="font-family: courier new,monospace;"><br>Best, <br>Ozgur Akgun<br>