| Safe Haskell | None | 
|---|---|
| Language | Haskell98 | 
Language.Haskell.Refact.Utils.LocUtils
- unmodified :: Bool
 - modified :: Bool
 - nullSrcSpan :: SrcSpan
 - getSrcSpan :: Data t => t -> Maybe SrcSpan
 - prettyprintPatList :: (t -> String) -> Bool -> [t] -> String
 - getGhcLoc :: SrcSpan -> (Int, Int)
 - getGhcLocEnd :: SrcSpan -> (Int, Int)
 - getLocatedStart :: GenLocated SrcSpan t -> (Int, Int)
 - getLocatedEnd :: GenLocated SrcSpan t -> (Int, Int)
 - ghcSpanStartEnd :: SrcSpan -> ((Int, Int), (Int, Int))
 - getStartEndLoc :: Data t => t -> (SimpPos, SimpPos)
 - startEndLocGhc :: Located b -> (SimpPos, SimpPos)
 - emptyList :: [t] -> Bool
 - nonEmptyList :: [t] -> Bool
 
Documentation
unmodified :: Bool Source #
getSrcSpan :: Data t => t -> Maybe SrcSpan Source #
Get the first SrcSpan found, in top down traversal
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
getLocatedStart :: GenLocated SrcSpan t -> (Int, Int) Source #
getLocatedEnd :: GenLocated SrcSpan t -> (Int, Int) Source #
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
nonEmptyList :: [t] -> Bool Source #