ihaskell 0.10.1.0 → 0.10.1.1
raw patch · 2 files changed
+9/−3 lines, 2 files
Files
- ihaskell.cabal +1/−1
- src/IHaskell/Eval/Lint.hs +8/−2
ihaskell.cabal view
@@ -7,7 +7,7 @@ -- PVP summary: +--+------- breaking API changes -- | | +----- non-breaking API additions -- | | | +--- code changes with no API change-version: 0.10.1.0+version: 0.10.1.1 -- A short (one-line) description of the package. synopsis: A Haskell backend kernel for the IPython project.
src/IHaskell/Eval/Lint.hs view
@@ -8,8 +8,10 @@ import Data.Maybe (mapMaybe) import System.IO.Unsafe (unsafePerformIO) -#if MIN_VERSION_hlint(3,0,0)+#if MIN_VERSION_hlint(3,1,1) import Language.Haskell.HLint+#elif MIN_VERSION_hlint(3,0,0)+import Language.Haskell.HLint import SrcLoc (SrcSpan(..), srcSpanStartLine) #else import Language.Haskell.Exts hiding (Module)@@ -203,7 +205,11 @@ } where getSrcSpanStartLine span =-#if MIN_VERSION_hlint(3,0,0)+#if MIN_VERSION_hlint(3,1,1)+ case unpackSrcSpan span of+ Just (_, (startLine, _), _) -> startLine+ Nothing -> 1+#elif MIN_VERSION_hlint(3,0,0) case span of RealSrcSpan realSpan -> srcSpanStartLine realSpan UnhelpfulSpan _ -> 1