Re: [Haskell-cafe] Receiving UDP messages on Windows 7

2012-06-18 Thread Holger Reinhardt
Hi, I added the following code to your program: import qualified Data.ByteString.Char8 as B sendMsg = withSocketsDo $ do sock - socket AF_INET Datagram defaultProtocol target - inet_addr 192.168.2.103 -- put your servers IP here sendTo sock (B.pack TEST) $ SockAddrInet target

Re: [Haskell-cafe] network-2.3.0.10 compiled for ghc 7.4.1 windows

2012-02-13 Thread Holger Reinhardt
On Wed, Feb 8, 2012 at 11:04 AM, Johan Tibell johan.tib...@gmail.comwrote: I will merge this as soon as I get back from vacation. On Feb 8, 2012 8:54 AM, Holger Reinhardt hreinha...@gmail.com wrote: Having discussed the issue privately with Alberto, I've found another bug and updated my pull

Re: [Haskell-cafe] network-2.3.0.10 compiled for ghc 7.4.1 windows

2012-02-08 Thread Holger Reinhardt
it does not detect the netwiorkin related includes such is socket.h. This does not exist neither in the ghc installation neither in GIT/Mingw 2012/2/7 Holger Reinhardt hreinha...@gmail.com: I just use the version of MSys that is included with Git [1]. This puts a Git bash icon on your desktop

Re: [Haskell-cafe] network-2.3.0.10 compiled for ghc 7.4.1 windows

2012-02-08 Thread Holger Reinhardt
...@gmail.com yes i did it,. the error is as follows: shop.exe: NetworkSocket.hsc:(948,3)-(1007,23): Non-exhaustive patterns in case I will download network form hackage and will do it form the beginning. . 2012/2/8 Holger Reinhardt hreinha...@gmail.com: Did you run cabal clean before

Re: [Haskell-cafe] network-2.3.0.10 compiled for ghc 7.4.1 windows

2012-02-07 Thread Holger Reinhardt
Hi, (I submitted the patch that Johan linked to) Network/Socket/Internal.hsc has the following code: #if defined(WITH_WINSOCK) || defined(cygwin32_HOST_OS) type CSaFamily = (#type unsigned short) #elif defined(darwin_HOST_OS) type CSaFamily = (#type u_char) #else type CSaFamily = (#type

Re: [Haskell-cafe] network-2.3.0.10 compiled for ghc 7.4.1 windows

2012-02-07 Thread Holger Reinhardt
...@gmail.com wrote: This is quite different. I don´t know how but I was looking at some other older patch around the same issue and I supposed that it was the one refered by Yohan Tibell. I´ll try your patch. Thanks!. 2012/2/7 Holger Reinhardt hreinha...@gmail.com: Hi

Re: [Haskell-cafe] network-2.3.0.10 compiled for ghc 7.4.1 windows

2012-02-07 Thread Holger Reinhardt
is the configuration and versioning of MinGW and MSys. This is a nighmare. 2012/2/7 Holger Reinhardt hreinha...@gmail.com: Oh you are using Cygwin. I'm using MSys so this is why I cannot reproduce your problem. Is there anything preventing you from using MSys? 2012/2/7 Alberto G

Re: [Haskell-cafe] type level strings?

2011-11-23 Thread Holger Reinhardt
You can do this with phantom types, i.e.: data Thing a = Thing Stuff instance Monoid (Thing a) where mappend (Thing stuff1) (Thing stuff2) = Thing (stuff1 `mappend` stuff2) mempty = Thing mempty data ID1 data ID2 thing1 :: Thing ID1 thing1 = Thing Stuff thing2 :: Thing ID2

Re: [Haskell-cafe] Haskell Actors, Linda, publish / subscribe models?

2011-08-15 Thread Holger Reinhardt
Hi, the actor package seems unmaintained and probably doesn't fit your needs. If you want to implement some kind of publish/subscribe system over the network, I'd suggest you take a look at ZeroMQ[1] and AMQP[2]. AMQP is probably easier to get started with, but it requires you to set up a

Re: [Haskell-cafe] Possible bug in Control.Concurrent

2011-02-09 Thread Holger Reinhardt
You've been bitten by the following bug: http://hackage.haskell.org/trac/ghc/ticket/4154 In short, isEmptyChan will block because of the concurrent call to readChan. The solution is to not use isEmptyChan or switch to STM. 2011/2/9 Krzysztof Skrzętnicki gte...@gmail.com Hello Cafe, Here is

Re: [Haskell-cafe] Haskell platform for GHC 6.12.1?

2010-03-06 Thread Holger Reinhardt
Have you tried compiling cabal-install with GHC 6.12.1? I got these stream errors after I compiled it with 6.10.4, but with 6.12.1 it's working flawless. 2010/3/6 Neil Mitchell ndmitch...@gmail.com That and all Cabal 0.8 binaries on Windows suffer from zlib corrupted stream issues. I've got

[Haskell-cafe] ANN: amqp-0.1

2010-01-17 Thread Holger Reinhardt
Hi, I've built an AMQP library. It currently only works with RabbitMQ and supports most of the 0-8 spec. If you don't know that AMQP is, this is a good introduction: http://blogs.digitar.com/jjww/2009/01/rabbits-and-warrens/ I have not done much testing, so this should be regarded as alpha