ifdef for ghc < 7.10
This commit is contained in:
parent
97d17b1173
commit
55216e4af3
@ -92,7 +92,11 @@ getSrcSpanTypeForFnSplit modSum lineNo colNo = do
|
|||||||
varT <- Gap.getType tcm varPat' -- Finally we get the type of the var
|
varT <- Gap.getType tcm varPat' -- Finally we get the type of the var
|
||||||
case varT of
|
case varT of
|
||||||
Just varT' ->
|
Just varT' ->
|
||||||
|
#if __GLASGOW_HASKELL__ >= 710
|
||||||
let (L matchL (G.Match _ _ _ (G.GRHSs rhsLs _))) = match
|
let (L matchL (G.Match _ _ _ (G.GRHSs rhsLs _))) = match
|
||||||
|
#else
|
||||||
|
let (L matchL (G.Match _ _ (G.GRHSs rhsLs _))) = match
|
||||||
|
#endif
|
||||||
in return $ Just (SplitInfo (getPatternVarName varPat') matchL varT' (map G.getLoc rhsLs) )
|
in return $ Just (SplitInfo (getPatternVarName varPat') matchL varT' (map G.getLoc rhsLs) )
|
||||||
_ -> return Nothing
|
_ -> return Nothing
|
||||||
|
|
||||||
|
@ -481,7 +481,11 @@ getPatsForVariable tcs (lineNo, colNo) =
|
|||||||
#else
|
#else
|
||||||
:: [G.LMatch Id]
|
:: [G.LMatch Id]
|
||||||
#endif
|
#endif
|
||||||
|
#if __GLASGOW_HASKELL__ >= 710
|
||||||
(L _ (G.Match _ pats _ _):_) = m
|
(L _ (G.Match _ pats _ _):_) = m
|
||||||
|
#else
|
||||||
|
(L _ (G.Match pats _ _):_) = m
|
||||||
|
#endif
|
||||||
in (funId, pats)
|
in (funId, pats)
|
||||||
_ -> (error "This should never happen", [])
|
_ -> (error "This should never happen", [])
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user