Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Haskell Question
Index -> Programming, General Programming -> Functional Programming
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
1of42




PostPosted: Fri Oct 14, 2005 8:48 pm   Post subject: Haskell Question

In which module do functions like sqrt, log etc. reside?

It appears that they are in a class called Fractional, but I'm not sure which module to import to get a them...
Sponsor
Sponsor
Sponsor
sponsor
wtd




PostPosted: Fri Oct 14, 2005 8:54 pm   Post subject: (No subject)

http://www.zvon.org/other/haskell/Outputglobal/

They are part of the Prelude module.

Type classes are not what you're used to calling "classes" in object-oriented languages. Wink
1of42




PostPosted: Fri Oct 14, 2005 9:23 pm   Post subject: (No subject)

kill me now.

note to self:

sqrt != squrt
wtd




PostPosted: Fri Oct 14, 2005 9:31 pm   Post subject: (No subject)

1of42 wrote:
kill me now.


May I ask why such a drastic course of action is necessary?
1of42




PostPosted: Fri Oct 14, 2005 9:34 pm   Post subject: (No subject)

because for some reason, while I was asking why sqrt wasn't in Prelude, the problem was I was unconsciously typing squrt into my code. >.<
wtd




PostPosted: Fri Oct 14, 2005 9:42 pm   Post subject: (No subject)

Yep. That'll cause problems. Wink
Display posts from previous:   
   Index -> Programming, General Programming -> Functional Programming
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 6 Posts ]
Jump to:   


Style:  
Search: