Skip to content

Commit

Permalink
Trying hline-2.1.20
Browse files Browse the repository at this point in the history
There is a problem in the unit tests, getting feedback for a haskell
file with a parse error in it.

See ndmitchell/hlint#637
  • Loading branch information
alanz committed May 15, 2019
1 parent ccb2598 commit 0d4496d
Show file tree
Hide file tree
Showing 11 changed files with 23 additions and 10 deletions.
3 changes: 2 additions & 1 deletion stack-8.2.2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,14 @@ extra-deps:
- czipwith-1.0.1.0
- floskell-0.10.0
- ghc-exactprint-0.5.8.2
- ghc-lib-parser-0.20190423
- haddock-api-2.18.1
- haddock-library-1.4.4
- haskell-lsp-0.12.1.0
- haskell-lsp-types-0.12.1.0
- haskell-src-exts-1.21.0
- haskell-src-exts-util-0.2.5
- hlint-2.1.19
- hlint-2.1.20
- hoogle-5.0.17.6
- hsimport-0.8.8
- lsp-test-0.5.2.2
Expand Down
3 changes: 2 additions & 1 deletion stack-8.4.2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,14 @@ extra-deps:
- constrained-dynamic-0.1.0.0
- floskell-0.10.0
- ghc-exactprint-0.5.8.2
- ghc-lib-parser-0.20190423
- haddock-api-2.20.0
- haddock-library-1.6.0
- haskell-lsp-0.12.1.0
- haskell-lsp-types-0.12.1.0
- haskell-src-exts-1.21.0
- haskell-src-exts-util-0.2.5
- hlint-2.1.19
- hlint-2.1.20
- hoogle-5.0.17.6
- hsimport-0.8.8
- lsp-test-0.5.2.2
Expand Down
3 changes: 2 additions & 1 deletion stack-8.4.3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,14 @@ extra-deps:
- constrained-dynamic-0.1.0.0
- floskell-0.10.0
- ghc-exactprint-0.5.8.2
- ghc-lib-parser-0.20190423
- haddock-api-2.20.0
- haddock-library-1.6.0
- haskell-lsp-0.12.1.0
- haskell-lsp-types-0.12.1.0
- haskell-src-exts-1.21.0
- haskell-src-exts-util-0.2.5
- hlint-2.1.19
- hlint-2.1.20
- hoogle-5.0.17.6
- hsimport-0.8.8
- lsp-test-0.5.2.2
Expand Down
3 changes: 2 additions & 1 deletion stack-8.4.4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,14 @@ extra-deps:
- constrained-dynamic-0.1.0.0
- floskell-0.10.0
- ghc-exactprint-0.5.8.2
- ghc-lib-parser-0.20190423
- haddock-api-2.20.0
- haddock-library-1.6.0
- haskell-lsp-0.12.1.0
- haskell-lsp-types-0.12.1.0
- haskell-src-exts-1.21.0
- haskell-src-exts-util-0.2.5
- hlint-2.1.19
- hlint-2.1.20
- hoogle-5.0.17.6
- hsimport-0.8.8
- lsp-test-0.5.2.2
Expand Down
3 changes: 2 additions & 1 deletion stack-8.6.1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,13 @@ extra-deps:
- czipwith-1.0.1.1
- data-tree-print-0.1.0.2
- floskell-0.10.0
- ghc-lib-parser-0.20190423
- haddock-api-2.21.0
- haskell-lsp-0.12.1.0
- haskell-lsp-types-0.12.1.0
- haskell-src-exts-1.21.0
- haskell-src-exts-util-0.2.5
- hlint-2.1.19
- hlint-2.1.20
- hoogle-5.0.17.6
- hsimport-0.8.8
- lsp-test-0.5.2.2
Expand Down
3 changes: 2 additions & 1 deletion stack-8.6.2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,13 @@ extra-deps:
- cabal-plan-0.4.0.0
- constrained-dynamic-0.1.0.0
- floskell-0.10.0
- ghc-lib-parser-0.20190423
- haddock-api-2.21.0
- haskell-lsp-0.12.1.0
- haskell-lsp-types-0.12.1.0
- haskell-src-exts-1.21.0
- haskell-src-exts-util-0.2.5
- hlint-2.1.19
- hlint-2.1.20
- hoogle-5.0.17.6
- hsimport-0.8.8
- lsp-test-0.5.2.2
Expand Down
3 changes: 2 additions & 1 deletion stack-8.6.3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,13 @@ extra-deps:
- cabal-plan-0.4.0.0
- constrained-dynamic-0.1.0.0
- floskell-0.10.0
- ghc-lib-parser-0.20190423
- haddock-api-2.21.0
- haskell-lsp-0.12.1.0
- haskell-lsp-types-0.12.1.0
- haskell-src-exts-1.21.0
- haskell-src-exts-util-0.2.5
- hlint-2.1.19
- hlint-2.1.20
- hoogle-5.0.17.6
- hsimport-0.8.8
- lsp-test-0.5.2.2
Expand Down
3 changes: 2 additions & 1 deletion stack-8.6.4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@ extra-deps:
- cabal-plan-0.4.0.0
- constrained-dynamic-0.1.0.0
- floskell-0.10.0
- ghc-lib-parser-0.20190423
- haddock-api-2.22.0
- haskell-lsp-0.12.1.0
- haskell-lsp-types-0.12.1.0
- haskell-src-exts-1.21.0
- hlint-2.1.19
- hlint-2.1.20
- hoogle-5.0.17.6
- hsimport-0.8.8
- lsp-test-0.5.2.2
Expand Down
2 changes: 1 addition & 1 deletion stack-8.6.5.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ extra-deps:
- haddock-api-2.22.0
- haskell-lsp-0.12.1.0
- haskell-lsp-types-0.12.1.0
- hlint-2.1.19
- hlint-2.1.20
- hsimport-0.8.8
- lsp-test-0.5.2.2
- monad-dijkstra-0.1.1.2@rev:1
Expand Down
2 changes: 1 addition & 1 deletion stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ extra-deps:
- haddock-api-2.22.0
- haskell-lsp-0.12.1.0
- haskell-lsp-types-0.12.1.0
- hlint-2.1.19
- hlint-2.1.20
- hsimport-0.8.8
- lsp-test-0.5.2.2
- monad-dijkstra-0.1.1.2@rev:1
Expand Down
5 changes: 5 additions & 0 deletions test/unit/ApplyRefactPluginSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
{-# LANGUAGE OverloadedStrings #-}
module ApplyRefactPluginSpec where

import Control.Monad.IO.Class
import qualified Data.HashMap.Strict as H
import qualified Data.Text as T
import Haskell.Ide.Engine.Plugin.ApplyRefact
Expand Down Expand Up @@ -85,7 +86,9 @@ applyRefactSpec = do
"Redundant bracket\nFound:\n (x + 1)\nWhy not:\n x + 1\n"
Nothing
]}
liftIO $ putStrLn "returns hints as diagnostics:1"
testCommand testPlugins act "applyrefact" "lint" arg res
liftIO $ putStrLn "returns hints as diagnostics:2"

-- ---------------------------------

Expand Down Expand Up @@ -115,7 +118,9 @@ applyRefactSpec = do
, _message = "Parse error: :~:\n import Data.Type.Equality ((:~:) (..), (:~~:) (..))\n \n> data instance Sing (z :: (a :~: b)) where\n SRefl :: Sing Refl +\n\n"
, _relatedInformation = Nothing }]}
#endif
liftIO $ putStrLn "returns hlint parse error as DsInfo ignored diagnostic:1"
testCommand testPlugins act "applyrefact" "lint" arg res
liftIO $ putStrLn "returns hlint parse error as DsInfo ignored diagnostic:2"

-- ---------------------------------

Expand Down

0 comments on commit 0d4496d

Please sign in to comment.