Hi Everybody (especially Parsec Creator),

is there any reason why float parses only positive numbers?

I find following defition:

float           = lexeme floating   <?> "float"

floating        = do{ n <- decimal
                        ; fractExponent n
                        }

If floating was defined like

floating        = do{ n <- integer ...

or

floating        = do{ n <- int ...

instead  then it would parse negative ones as well.  

Best regards,
Bartek


_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to