Skip to content

Commit

Permalink
Require apply-refact 0.9.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zliu41 committed Jan 18, 2021
1 parent 06ec6ee commit d8dfcbe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/Hint/Bracket.hs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ issue909 = let ((x:: y) -> z) = q in q
issue909 = do {((x :: y) -> z) <- e; return 1}
issue970 = (f x +) (g x) -- f x + (g x)
issue969 = (Just \x -> x || x) *> Just True
issue1179 = do(this is a test) -- do this is a test
-- type bracket reduction
foo :: (Int -> Int) -> Int
Expand Down
6 changes: 4 additions & 2 deletions src/Refact.hs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ refactorPath rpath = do
ver <- readVersion . tail <$> readProcess exc ["--version"] ""
pure $ if ver >= minRefactorVersion
then Right exc
else Left $ "Your version of refactor is too old, please upgrade to " ++ showVersion minRefactorVersion ++ " or later"
else Left $ "Your version of refactor is too old, please install apply-refact "
++ showVersion minRefactorVersion
++ " or later. Apply-refact can be installed from Cabal or Stack."
Nothing -> pure $ Left $ unlines
[ "Could not find 'refactor' executable"
, "Tried to find '" ++ excPath ++ "' on the PATH"
Expand All @@ -72,4 +74,4 @@ runRefactoring rpath fin hints enabled disabled opts = do
waitForProcess phand

minRefactorVersion :: Version
minRefactorVersion = makeVersion [0,8,2,0]
minRefactorVersion = makeVersion [0,9,0,0]

0 comments on commit d8dfcbe

Please sign in to comment.