Safe Haskell | None |
---|---|
Language | Haskell2010 |
Showing references to slices of code
Synopsis
- type SrcSlice = SrcSpan
- srcSlice :: (Data a, Show a) => a -> SrcSpan
- srcLoc :: (Data code, Show code) => code -> SrcLoc
- showSrcSpan :: SrcSpan -> ShowS
- mergeSrcLocs :: [SrcLoc] -> SrcSpan
- sliceFirstLine :: SrcSpan -> Int
- sliceLastLine :: SrcSpan -> Int
- sliceFilename :: SrcSpan -> String
- locAsSpan :: SrcLoc -> SrcSpan
Documentation
srcSlice :: (Data a, Show a) => a -> SrcSpan Source #
Compute the slice of code that given source fragment is in (for naming)
showSrcSpan :: SrcSpan -> ShowS Source #
mergeSrcLocs :: [SrcLoc] -> SrcSpan Source #
sliceFirstLine :: SrcSpan -> Int Source #
sliceLastLine :: SrcSpan -> Int Source #
sliceFilename :: SrcSpan -> String Source #