| Safe Haskell | Safe |
|---|---|
| Language | Haskell2010 |
FreeC.Frontend.Haskell.SrcSpanConverter
Contents
Description
This module contains type class instances for converting source spans from
the haskell-src-exts package to the source spans of the intermediate
representation of the compiler.
Synopsis
- class ConvertibleSrcSpan ss where
- convertSrcSpan :: SrcFileMap -> ss -> SrcSpan
Documentation
class ConvertibleSrcSpan ss where Source #
Type class for source spans from other packages that can be converted
to SrcSpans for pretty printing of messages.
Methods
convertSrcSpan :: SrcFileMap -> ss -> SrcSpan Source #
Converts the given third party source span to a SrcSpan by attaching
the corresponding line of source code.
Instances
| ConvertibleSrcSpan SourcePos Source # | |
Defined in FreeC.Util.Parsec Methods convertSrcSpan :: SrcFileMap -> SourcePos -> SrcSpan Source # | |
| ConvertibleSrcSpan SrcLoc Source # | Converts a |
Defined in FreeC.Frontend.Haskell.SrcSpanConverter Methods convertSrcSpan :: SrcFileMap -> SrcLoc -> SrcSpan Source # | |
| ConvertibleSrcSpan SrcSpan Source # | Directly converts a |
Defined in FreeC.Frontend.Haskell.SrcSpanConverter Methods convertSrcSpan :: SrcFileMap -> SrcSpan -> SrcSpan0 Source # | |
| ConvertibleSrcSpan SrcSpanInfo Source # | Converts a |
Defined in FreeC.Frontend.Haskell.SrcSpanConverter Methods convertSrcSpan :: SrcFileMap -> SrcSpanInfo -> SrcSpan Source # | |
Orphan instances
| ConvertibleSrcSpan SrcLoc Source # | Converts a |
Methods convertSrcSpan :: SrcFileMap -> SrcLoc -> SrcSpan Source # | |
| ConvertibleSrcSpan SrcSpan Source # | Directly converts a |
Methods convertSrcSpan :: SrcFileMap -> SrcSpan -> SrcSpan0 Source # | |
| ConvertibleSrcSpan SrcSpanInfo Source # | Converts a |
Methods convertSrcSpan :: SrcFileMap -> SrcSpanInfo -> SrcSpan Source # | |