packages feed

ghcid 0.3 → 0.3.1

raw patch · 4 files changed

+6/−4 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 +0.3.1+    Ensure if there are lots of warnings, the first error gets shown 0.3     #11, ignore certain GHCi-only warnings     #13, fix version printing
README.md view
@@ -6,7 +6,7 @@  **Using it** -Run `cabal update && cabal install ghcid` to install it as normal. Then run `ghcid --height=8 --topmost "--command=ghci Main.hs"`. The `height` is the number of lines you are going to resize your console window to (defaults to 8). The `topmost` is to make the window sit above all others, which only works on Windows. The `command` is how you start your project in `ghci`. If you omit `--command` then it will default to `ghci` if you have a `.ghci` file in the current directory, otherwise it will default to `cabal repl`.+Run `cabal update && cabal install ghcid` to install it as normal. Then run `ghcid --height=8 --topmost "--command=ghci Main.hs"`. The `height` is the number of lines you are going to resize your console window to (defaults to height of the console). The `topmost` is to make the window sit above all others, which only works on Windows. The `command` is how you start your project in `ghci`. If you omit `--command` then it will default to `ghci` if you have a `.ghci` file in the current directory, otherwise it will default to `cabal repl`.  Personally, I always create a `.ghci` file at the root of all my projects, which usually [reads something like](https://github.com/ndmitchell/ghcid/blob/master/.ghci): 
ghcid.cabal view
@@ -1,7 +1,7 @@ cabal-version:      >= 1.10 build-type:         Simple name:               ghcid-version:            0.3+version:            0.3.1 license:            BSD3 license-file:       LICENSE category:           Development@@ -10,7 +10,7 @@ copyright:          Neil Mitchell 2014 synopsis:           GHCi based bare bones IDE description:-    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 --height=10 --topmost --command=ghci@, where @--height@ is the height of the console you will use, @--topmost@ makes the window on top of all others (Windows only) and @--command@ is the command to start GHCi on your project.+    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==7.8.2, GHC==7.6.3
src/Ghcid.hs view
@@ -85,7 +85,7 @@  prettyOutput :: Int -> [Load] -> [String] prettyOutput _ [] = [allGoodMessage]-prettyOutput height xs = take (height - (length msgs * 2)) msg1 ++ concatMap (take 2) msgs+prettyOutput height xs = take (max 3 $ height - (length msgs * 2)) msg1 ++ concatMap (take 2) msgs     where (err, warn) = partition ((==) Error . loadSeverity) xs           msg1:msgs = map loadMessage err ++ map loadMessage warn