[Haskell-cafe] Weird socket problem on Mac OS X
aslatter at gmail.com
Fri Jun 4 07:35:09 EDT 2010
On Fri, Jun 4, 2010 at 12:11 AM, Arnaud Bailly <arnaud.oqube at gmail.com> wrote:
> Yes, I have also seen the other post on the same topic, but it seemed
> to refer to the PortNumber in Network.Socket with a PortNum
> constructor I think, not the one in Network (but I am probably
> misleading myself as one is a reexportation of the other...).
> But then I got.
> No instance for (Num PortID)
> arising from a use of `fromInteger'
> at Slim\SlimClientIO.hs:26:51-61
> Possible fix: add an instance declaration for (Num PortID)
> In the first argument of `($)', namely `fromInteger'
> In the expression: fromInteger $ slimport $ slimConfig st
> In the definition of `port':
> port = fromInteger $ slimport $ slimConfig st
Oops! I didn't read carefully enough. That's what I get for trying to
program without haddocks or GHCi in front of me.
I am glad you have something that works.
More information about the Haskell-Cafe