[GHC] #663: Confusion about types

GHC trac at galois.com
Thu Jan 19 05:00:09 EST 2006


#663: Confusion about types
--------------------------------------+-------------------------------------
  Reporter:  guest                    |          Owner:         
      Type:  bug                      |         Status:  closed 
  Priority:  normal                   |      Milestone:         
 Component:  Compiler (Type checker)  |        Version:  6.4.1  
  Severity:  normal                   |     Resolution:  invalid
  Keywords:                           |             Os:  Unknown
Difficulty:  Unknown                  |   Architecture:  Unknown
--------------------------------------+-------------------------------------
Changes (by simonpj):

  * resolution:  => invalid
  * status:  new => closed

Comment:

 Not a bug, but rather a confusion about data type declarations.

 My advice: just leave the "Ord a =>" out.  If you must have it,
 use this
 {{{
   data Ord a => BST a = ...
 }}}
 The Haskell Report discusses this; Haskell-cafe mailing list will help
 too.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/663>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the Glasgow-haskell-bugs mailing list