Remove GHC style line pragmas ({-# LINE .. #-}) and convert them into comments.
Moduleghc-exactprint-1.10.0.0Haskell2010
Language.Haskell.GHC.ExactPrint.Preprocess
This module provides support for CPP, interpreter directives and line pragmas.
- 1 type
- 5 values
- Packageghc-exactprint-1.10.0.0
- Exports6
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourcePreprocess.hs
value
getCppTokensAsComments :: GhcMonad m=> CppOptionsPreprocessor Options
-> FilePathPath to source file
-> m [LEpaComment]
Replacement for original getRichTokenStream which will return
the tokens for a file processed by CPP.
See bug http://ghc.haskell.org/trac/ghc/ticket/8265