@@ -45,11 +45,14 @@ instance Show Associativity where
4545-- Source position information
4646--
4747data SourcePos = SourcePos
48− {
48+ { -- |
49+ -- Source name
50+ --
51+ sourceName :: String
4952 -- |
5053 -- Line number
5154 --
52− sourcePosLine :: Int
55+ , sourcePosLine :: Int
5356 -- |
5457 -- Column number
5558 --
@@ -57,7 +60,7 @@ data SourcePos = SourcePos
5760 } deriving (D.Data, D.Typeable)
5861
5962instance Show SourcePos where
60− show sp = "line " ++ show (sourcePosLine sp) ++ ", column " ++ show (sourcePosColumn sp)
63+ show sp = (sourceName sp) ++ " line " ++ show (sourcePosLine sp) ++ ", column " ++ show (sourcePosColumn sp)
6164
6265-- |
6366-- Fixity data for infix operators