X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;ds=sidebyside;f=compiler%2Futils%2FOutputable.lhs;h=548dc2ca8b53b72f94675506318e22d9a579f0b8;hb=6e5eafac797562bc2a72068dd27f19adc75bdb41;hp=f476849e11cad6fa5803bf0cbb7a3ffdd52ea5ac;hpb=24b1e13657c3e06e7c97eeab9a6c4f2a0cdd9193;p=ghc-hetmet.git diff --git a/compiler/utils/Outputable.lhs b/compiler/utils/Outputable.lhs index f476849..548dc2c 100644 --- a/compiler/utils/Outputable.lhs +++ b/compiler/utils/Outputable.lhs @@ -41,6 +41,7 @@ module Outputable ( pprInfixVar, pprPrefixVar, pprHsChar, pprHsString, pprHsInfix, pprHsVar, + pprFastFilePath, -- * Controlling the style in which output is printed BindingSite(..), @@ -74,6 +75,7 @@ import Panic import Data.Word ( Word32 ) import System.IO ( Handle, stderr, stdout, hFlush ) import Data.Char ( ord ) +import System.FilePath \end{code} @@ -599,6 +601,9 @@ isOperator ppr_v ('_':_) -> False -- Not an operator (c:_) -> not (isAlpha c) -- Starts with non-alpha _ -> False + +pprFastFilePath :: FastString -> SDoc +pprFastFilePath path = text $ normalise $ unpackFS path \end{code} %************************************************************************