packages feed

ghcid 0.8.5 → 0.8.6

raw patch · 4 files changed

+16/−3 lines, 4 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

CHANGES.txt view
@@ -1,5 +1,7 @@ Changelog for ghcid (* = breaking change) +0.8.6, released 2020-04-13+    #314, report GHC panics as error messages 0.8.5, released 2020-03-19     #311, allow --target with Stack 0.8.4, released 2020-03-15
ghcid.cabal view
@@ -1,7 +1,7 @@ cabal-version:      >= 1.18 build-type:         Simple name:               ghcid-version:            0.8.5+version:            0.8.6 license:            BSD3 license-file:       LICENSE category:           Development@@ -13,7 +13,7 @@     Either \"GHCi as a daemon\" or \"GHC + a bit of an IDE\". A very simple Haskell development tool which shows you the errors in your project and updates them whenever you save. Run @ghcid --topmost --command=ghci@, where @--topmost@ makes the window on top of all others (Windows only) and @--command@ is the command to start GHCi on your project (defaults to @ghci@ if you have a @.ghci@ file, or else to @cabal repl@). homepage:           https://github.com/ndmitchell/ghcid#readme bug-reports:        https://github.com/ndmitchell/ghcid/issues-tested-with:        GHC==8.8.1, GHC==8.6.5, GHC==8.4.4, GHC==8.2.2, GHC==8.0.2, GHC==7.10.3+tested-with:        GHC==8.10.1, GHC==8.8.3, GHC==8.6.5, GHC==8.4.4, GHC==8.2.2, GHC==8.0.2 extra-doc-files:     CHANGES.txt     README.md
src/Ghcid.hs view
@@ -217,6 +217,8 @@                 outStrLn $ "%OS: " ++ os                 outStrLn $ "%ARCH: " ++ arch                 outStrLn $ "%VERSION: " ++ showVersion version+                args <- getArgs+                outStrLn $ "%ARGUMENTS: " ++ show args             withCurrentDirectory (directory opts) $ do                 opts <- autoOptions opts                 opts <- pure $ opts{restart = nubOrd $ (origDir </> ".ghcid") : restart opts, reload = nubOrd $ reload opts}
src/Language/Haskell/Ghcid/Parser.hs view
@@ -62,11 +62,17 @@             | Just file <- stripPrefixE "<no location info>: can't find file: " x             = Message Error (unescapeE file) (0,0) (0,0) [fromEsc x] : f xs +        -- <no location info>: error:+        f (x:xs)+            | unescapeE x == "<no location info>: error:"+            , (xs,rest) <- span leadingWhitespaceE xs+            = Message Error "<unknown>" (0,0) (0,0) (map fromEsc $ x:xs) : f rest+         -- Module imports form a cycle:         --   module `Module' (Module.hs) imports itself         f (x:xs)             | unescapeE x == "Module imports form a cycle:"-            , (xs,rest) <- span (isPrefixOfE " ") xs+            , (xs,rest) <- span leadingWhitespaceE xs             , let ms = [takeWhile (/= ')') x | x <- xs, '(':x <- [dropWhile (/= '(') $ unescapeE x]]             = [Message Error m (0,0) (0,0) (map fromEsc $ x:xs) | m <- nubOrd ms] ++ f rest @@ -78,6 +84,9 @@         f (_:xs) = f xs         f [] = [] +leadingWhitespaceE :: Esc -> Bool+leadingWhitespaceE x =+    isPrefixOfE " " x || isPrefixOfE "\t" x  -- 1:2: -- 1:2-4: