HaRe-0.8.3.0: the Haskell Refactorer.

Safe HaskellNone
LanguageHaskell98

Language.Haskell.Refact.Utils.LocUtils

Synopsis

Documentation

getSrcSpan :: Data t => t -> Maybe SrcSpan Source #

Get the first SrcSpan found, in top down traversal

prettyprintPatList :: (t -> String) -> Bool -> [t] -> String Source #

getGhcLoc :: SrcSpan -> (Int, Int) Source #

gets the (row,col) of the start of the GHC.SrcSpan, or (-1,-1) if there is an GHC.UnhelpfulSpan

getGhcLocEnd :: SrcSpan -> (Int, Int) Source #

gets the (row,col) of the end of the GHC.SrcSpan, or (-1,-1) if there is an GHC.UnhelpfulSpan

emptyList :: [t] -> Bool Source #

Get around lack of instance Eq when simply testing for empty list TODO: get rid of this in favour of null built in fn