Ticket #398 (closed bug: fixed)

Opened 8 years ago

Last modified 5 years ago

Xlib Types Not Instances of Anything

Reported by: jcast Owned by: ross
Priority: normal Milestone:
Component: libraries (other) Version: 6.4
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description (last modified by ross) (diff)

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.

Change History

Changed 8 years ago by simonpj

Logged In: YES 
user_id=50165

Ross Paterson is looking into this.

Changed 7 years ago by simonmar

  • owner changed from nobody to ross
  • status changed from assigned to new
  • description modified (diff)

Changed 7 years ago by ross

  • status changed from new to closed
  • description modified (diff)
  • os set to Unknown
  • difficulty set to Unknown
  • architecture set to Unknown
  • resolution changed from None to fixed

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.

Changed 5 years ago by simonmar

  • architecture changed from Unknown to Unknown/Multiple

Changed 5 years ago by simonmar

  • os changed from Unknown to Unknown/Multiple
Note: See TracTickets for help on using tickets.