homplexity-0.4.8.1: Haskell code quality tool
Safe HaskellSafe-Inferred
LanguageHaskell2010

Language.Haskell.Homplexity.SrcSlice

Description

Showing references to slices of code

Synopsis

Documentation

type SrcSlice = SrcSpan Source #

srcSlice :: (Data a, Show a) => a -> SrcSpan Source #

Compute the slice of code that given source fragment is in (for naming)

srcLoc :: (Data code, Show code) => code -> SrcLoc Source #

showSrcSpan :: SrcSpan -> ShowS Source #

mergeSrcLocs :: [SrcLoc] -> SrcSpan Source #

sliceFirstLine :: SrcSpan -> Int Source #

sliceLastLine :: SrcSpan -> Int Source #

sliceFilename :: SrcSpan -> String Source #

locAsSpan :: SrcLoc -> SrcSpan Source #