Add back show instance for Span
This commit is contained in:
parent
4f29ee4fff
commit
7bb74f7315
1 changed files with 6 additions and 1 deletions
|
|
@ -184,7 +184,12 @@ instance Onion AsmToken where
|
|||
peel (TokenComment a _ _) = a
|
||||
|
||||
data Span = Span SourcePos SourcePos
|
||||
deriving (Show)
|
||||
|
||||
instance Show Span where
|
||||
show (Span start end) = "<" ++ showPos start ++ "-" ++ showPos end ++ ">"
|
||||
where
|
||||
showPos pos =
|
||||
show (unPos $ sourceLine pos) ++ ":" ++ show (unPos $ sourceColumn pos)
|
||||
|
||||
type Phase1 = [AsmToken Span]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue