File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
lib/Language/Haskell/Stylish Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ module Language.Haskell.Stylish.GHC
88 -- * Unsafe getters
99 , unsafeGetRealSrcSpan
1010 , getEndLineUnsafe
11+ , getEndColumnUnsafe
1112 , getStartLineUnsafe
1213 -- * Standard settings
1314 , baseDynFlags
@@ -33,7 +34,7 @@ import qualified Outputable as GHC
3334import PlatformConstants (PlatformConstants (.. ))
3435import SrcLoc (GenLocated (.. ), Located , RealLocated ,
3536 RealSrcSpan , SrcSpan (.. ), srcSpanEndLine ,
36- srcSpanStartLine )
37+ srcSpanStartLine , srcSpanEndCol )
3738import ToolSettings (ToolSettings (.. ))
3839
3940unsafeGetRealSrcSpan :: Located a -> RealSrcSpan
@@ -47,6 +48,9 @@ getStartLineUnsafe = srcSpanStartLine . unsafeGetRealSrcSpan
4748getEndLineUnsafe :: Located a -> Int
4849getEndLineUnsafe = srcSpanEndLine . unsafeGetRealSrcSpan
4950
51+ getEndColumnUnsafe :: Located a -> Int
52+ getEndColumnUnsafe = srcSpanEndCol . unsafeGetRealSrcSpan
53+
5054dropAfterLocated :: Maybe (Located a ) -> [RealLocated b ] -> [RealLocated b ]
5155dropAfterLocated loc xs = case loc of
5256 Just (L (RealSrcSpan rloc) _) ->
You can’t perform that action at this time.
0 commit comments