homplexity-0.4.8.0: Haskell code quality tool

Safe HaskellNone
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 #

locAsSpan :: SrcLoc -> SrcSpan Source #