In local.glasgow-haskell-bugs, you wrote:
>> Suddenly my program which would work fine in 4.08.2 & 5.00 throws
>> a pattern-match failure in SocketPrim/228 when compiled using 5.01.
>> There is the test for AF_INET/AF_UNIX. When catching this in an
>> "otherwise"-rule and printing the passed value, it is 7368, just for
>> the record. Is someone feeling guilty of perhaps having broken things?
>
>Perhaps, but I can't repeat the bug.  Your code fragment appears to work
>fine here.  Which arch/OS, BTW?

You're right, my assumption of the location is wrong. I tracked it down
to "socketPort", please apologize my laziness (which as we all now is
mostly an appreciated feature around here ;)

>   listen      _ iface port = do
>     -- sockInit
>     socket <- listenOn iface (PortNumber (case port of
>                                 Nothing -> SocketPrim.aNY_PORT
>                                 Just p  -> mkPortNumber p))
>     print "reached"
>     (PortNumber myPort) <- socketPort socket
>     print "NOT REACHED"
>     let record = SocketR {
>       socketR = socket,
>       portR   = (read (show myPort)) :: Port -- sigh
>      }
>     return record

I'm still on it.
-- 
Abstrakte Syntaxtr�ume.
Volker Stolz * [EMAIL PROTECTED] * PGP + S/MIME

_______________________________________________
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to