SrcLocPretty

Plain source file: base/AST/SrcLocPretty.hs (2004-01-28)

SrcLocPretty is imported by: BaseSyntaxPretty, HsDeclUtil, TiError, TiNames, UniqueNames, ParseMonad, DefinedNamesPropStruct.

module SrcLocPretty where
import SrcLoc
import PrettyPrint

instance Printable SrcLoc where
    ppi (SrcLoc f _ l c) =  f<>":"<>l<>','<>c
    wrap = ppi

shLineCol (SrcLoc _ _ l c) = show l++"_"++show c

Index

(HTML for this module was generated on 2006-08-12. About the conversion tool.)