fix syntax error when __GLASGOW_HASKELL__ >= 702

This commit is contained in:
eagletmt 2012-02-09 15:28:59 +09:00
parent e8a494d426
commit 8ff7b4c156

View File

@ -58,7 +58,7 @@ ppErrMsg err = ppMsg spn msg defaultUserStyle ++ ext
ppMsg :: SrcSpan -> Message -> PprStyle -> String
#if __GLASGOW_HASKELL__ >= 702
ppMsg (UnhelpfulSpan _) _ _ = undefined
ppMsg (RealSrcSpan src) msg _ = undefined
ppMsg (RealSrcSpan src) msg stl
#else
ppMsg src msg stl
#endif