[project @ 2004-04-02 16:54:02 by simonpj]
authorsimonpj <unknown>
Fri, 2 Apr 2004 16:54:02 +0000 (16:54 +0000)
committersimonpj <unknown>
Fri, 2 Apr 2004 16:54:02 +0000 (16:54 +0000)
Another stage-2 wibble to last commit

ghc/compiler/hsSyn/Convert.lhs

index c2d35d5..03abd3c 100644 (file)
@@ -62,7 +62,7 @@ mk_con con = L loc0 $ case con of
         = (noLoc (vName i), noLoc $ BangType HsNoBang (cvtType ty))
 
 mk_derivs [] = Nothing
-mk_derivs cs = Just (noLoc [noLoc $ HsClassP (tconName c) [] | c <- cs])
+mk_derivs cs = Just [noLoc $ HsPredTy $ noLoc $ HsClassP (tconName c) [] | c <- cs]
 
 cvt_ltop  :: TH.Dec -> Either (LHsDecl RdrName) Message
 cvt_ltop d = case cvt_top d of