[Hugs-users] Typing the plus operator

aldirithms at gmx.net aldirithms at gmx.net
Sat Aug 5 13:58:36 EDT 2006


Hello Hugs Users,

do you know why

Hugs> :t 1
1 :: Num a => a


and therefore


Hugs> 1 :: Num a => a
1


is possible under Hugs, whereas 

Hugs> :t (+)
(+) :: Num a => a -> a -> a

and (not?) therefore

Hugs> (+) :: Num a => a -> a -> a
ERROR - Cannot find "show" function for:
*** Expression : (+)
*** Of type    : Integer -> Integer -> Integer


yields the error message shown?

Thank you very much,

Christian,

Haskell beginner

-- 


"Feel free" – 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail


More information about the Hugs-Users mailing list