
-----------------------------------
neokewl
Fri Jan 05, 2007 2:58 am

ebooks or books required ..
-----------------------------------
Hi all,

 I am thinking of developing a simple chat program using a client server architecture using haskell. Currently the books tht i have focus on the fundamentals of the language and the inbuilt functions. 

 I would like to know if there are libraries for networking operations and for that of gui. Also, I would appreciate if some one could give me a link to a resource that focuses on these aspects.


 thnx
 neokewl

-----------------------------------
haskell
Fri Jan 05, 2007 3:19 pm


-----------------------------------
Use Google instead of asking... There aren't many functional programmers, and even less using Haskell.

 If you can't find it, then go to the Haskell mailing list on Usenet.

-----------------------------------
neokewl
Fri Jan 05, 2007 4:14 pm


-----------------------------------
n wot makes u feel tht i havent googled it before shooting a mail across.

 I thought this was a functional programming group, n ppl in here should be learning or learnt or serious about functional programming. 

 So I think it is right for me to put a valid question to a correct group tht i have registered to.  If u dont knw the answer then its fine, but it is not courteous of u too shoot the mails like the above as u did.

-----------------------------------
Hikaru79
Thu Jan 11, 2007 12:08 pm


-----------------------------------
n wot makes u feel tht i havent googled it before shooting a mail across.

Not to seem rude or anything, but probably the fact that you didn't find anything. For example, here's the second hit when searching for "haskell networking": [url=http://haskell.org/haskellwiki/Roll_your_own_IRC_bot]a tutorial on building an IRC bot in Haskell. I've only skimmed it, but it seems like a good introduction to basic network i/o.

And when I googled "haskell gui", the very top hit was a page with links to two different toolkits [url=http://www.xoltar.org/old_site/2003//jul/23/twoHaskellGUIs.html]here. And the second hit is an actual Wikibook on getting those set up, [url=http://en.wikibooks.org/wiki/Haskell/GUI]here

See? :)

-----------------------------------
haskell
Thu Jan 11, 2007 6:00 pm

Re: ebooks or books required ..
-----------------------------------
Exactly. I found all sorts of things with simple searches.

 And you don't exactly make the most sense. With all the spelling errors and such... Maybe you spelled something wrong(just throwing it out there).

 Plus this isn't a mailing list. It is a message board. The mailing lists are much more indepth with the "experts" around there that are 100% focused on one particular language. 

 If you don't want the greatest help you can be given(told to go to a mailing list where the people are 100% dedicated to a language) than fine. I don't care.

-----------------------------------
rizzix
Sun Feb 04, 2007 11:38 pm

RE:ebooks or books required ..
-----------------------------------
Here's a chat server i wrote in haskell long time ago... (It dosen't use any fancy STM.. so it should be easy to follow)

import System.IO
import Network
import Control.Concurrent
import Control.Concurrent.MVar

type Peer = (Handle, HostName, PortNumber)

data Message    = Msg Peer 

You can telnet to it and test it out ;)

Oh and ignore the '>' character before the '::' in the type definitions.. It is a marker Dan had applied to debug the syntax script.
