[Haskell-cafe] Numerals in input vs numerals in source

Brandon Allbery allbery.b at gmail.com
Wed Sep 24 03:54:17 UTC 2014


On Tue, Sep 23, 2014 at 11:49 PM, Brandon Allbery <allbery.b at gmail.com>
wrote:

> (The 1 is parsed as Integer by the compiler in all three cases, but the
> resulting AST is (fromIntegral 1) in all three cases.)


Actually, to be pedantic, it's fromInteger and the resulting AST node is
something like

    ((fromInteger :: Num a => Integer -> a) (1 :: Integer))

-- 
brandon s allbery kf8nh                               sine nomine associates
allbery.b at gmail.com                                  ballbery at sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20140923/fe24b56b/attachment.html>


More information about the Haskell-Cafe mailing list