#398: Xlib Types Not Instances of Anything
--------------------------------+-------------------------------------------
  Reporter:  jcast              |          Owner:  ross   
      Type:  bug                |         Status:  closed 
  Priority:  normal             |      Milestone:         
 Component:  libraries (other)  |        Version:  6.4    
  Severity:  normal             |     Resolution:  fixed  
  Keywords:                     |             Os:  Unknown
Difficulty:  Unknown            |   Architecture:  Unknown
--------------------------------+-------------------------------------------
Changes (by ross):

  * architecture:  => Unknown
  * resolution:  None => fixed
  * difficulty:  => Unknown
  * status:  new => closed
  * os:  => Unknown

Old description:

> {{{
> The types defined by newtype in Graphics.X11.Xlib.Types
> are not instances of any type classes.  Ptr, on the
> other hand, which these types are synonyms for, is an
> instance of Eq, Ord, Show, Typeable, Data, Storable,
> and several other classes not relevant to the usage of
> pointers in Graphics.X11.Xlib.
> }}}

New description:

 The types defined by newtype in Graphics.X11.Xlib.Types
 are not instances of any type classes.  Ptr, on the
 other hand, which these types are synonyms for, is an
 instance of Eq, Ord, Show, Typeable, Data, Storable,
 and several other classes not relevant to the usage of
 pointers in Graphics.X11.Xlib.

Comment:

 The newtypes will be instances of Eq, Ord, Show, Typeable and Data in the
 next major release.

 Storable wouldn't be appropriate, as these types are abstract in this API.

-- 
Ticket URL: <http://cvs.haskell.org/trac/ghc/ticket/398>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to