[Haskell-beginners] Parsec Monad Type Confusion

Magnus Therning magnus at therning.org
Sat Jul 10 05:54:02 EDT 2010


On 10/07/10 08:52, Stephen Tetley wrote:
> Hi Aleksandar
> 
> This line looks wrong
> 
>>                    return $ Number . read $ x
> 
> Try this
> 
>>                    return $ Number $ read x

AFAICS that change should make no difference at all.  In fact the line
could also be written as

    return . Number . read $ x

/M

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
Url : http://www.haskell.org/pipermail/beginners/attachments/20100710/4693f7c5/signature.bin


More information about the Beginners mailing list