In ghc 2.02 I seem to be having a problem. The following program 

module Test where

newtype Test = Test String deriving (Eq, Ord)

test :: [Test] -> Test
test = maximum

gives the error
Test.hs:6: No instance for: PrelBase.Ord Test.Test
    Test.hs:6: at a use of an overloaded identifier: `PrelList.maximum'

Changing newtype to data compiles fine however.


Justin

Reply via email to