Just show the value of located things, not the location.
commit9d9e9d23885d63a8b16393fa1f15f7627c072749
authorEvan Czaplicki <info@elm-lang.org>
dateMon 11 Nov 2013, 15:40 (13 years ago)
parent07187bd
compiler/SourceSyntax/Location.hs+1−1
@@ -53,7 +53,7 @@ instance Show SrcSpan where
5353 show (column start) ++ " to " ++ show (column end)
5454
5555instance Show e => Show (Located e) where
56− show (L s e) = "L (" ++ show s ++ ") (" ++ show e ++ ")"
56+ show (L _ e) = show e
5757
5858instance Pretty a => Pretty (Located a) where
5959 pretty (L _ e) = pretty e