Eq Socket

Koen Claessen koen at cs.chalmers.se
Thu Aug 9 11:09:19 EDT 2001


Hi,

In the GHC manual for the Socket library it says:

  data Socket     -- instance of: Eq, Show

But Socket does not seem to be an instance of Eq, as the
following program shows:

  module Apa where

  import Socket

  foo :: Socket -> Bool
  foo x = x == x

When executing "ghc -package net -c Apa.hs", I get:

  Apa.hs:6:
    No instance for `Eq Socket'
    arising from use of `==' at Apa.hs:6
    in the definition of function `foo': x == x

/Koen.

--
Koen Claessen         http://www.cs.chalmers.se/~koen
phone:+46-31-772 5424      mailto:koen at cs.chalmers.se
-----------------------------------------------------
Chalmers University of Technology, Gothenburg, Sweden





More information about the Glasgow-haskell-bugs mailing list