hlint: update to 3.2.7

This commit is contained in:
slotThe 2021-03-17 15:03:10 +01:00 committed by q66
parent dd0bef232c
commit a7bb3d8d57
3 changed files with 9 additions and 18 deletions

View file

@ -1,7 +0,0 @@
resolver: lts-16.13
packages: [.]
extra-deps:
- ghc-lib-parser-8.8.4.20200716
- ghc-lib-parser-ex-8.8.5.8
ghc-options:
"$locals": -Wunused-imports -Worphans -Wunused-top-binds -Wunused-local-binds -Wincomplete-patterns

View file

@ -1,13 +1,11 @@
diff --git src/CmdLine.hs src/CmdLine.hs
index 8c3d530..ccf7aac 100644
--- a/src/CmdLine.hs
+++ b/src/CmdLine.hs
@@ -52,7 +52,7 @@ automatic cmd = case cmd of
@@ -58,7 +58,7 @@
b <- doesDirectoryExist x
if b then return cmd{cmdDataDir=x} else do
if b then pure cmd{cmdDataDir=x} else do
exe <- getExecutablePath
- return cmd{cmdDataDir = takeDirectory exe </> "data"}
+ return cmd{cmdDataDir = takeDirectory exe </> "../share/hlint/data"}
- pure cmd{cmdDataDir = takeDirectory exe </> "data"}
+ pure cmd{cmdDataDir = takeDirectory exe </> "../share/hlint/data"}
git cmd
| cmdGit cmd = do
mgit <- findExecutable "git"

View file

@ -1,16 +1,16 @@
# Template file for 'hlint'
pkgname=hlint
version=2.2.11
revision=2
version=3.2.7
revision=1
build_style=haskell-stack
stackage="lts-16.13"
stackage="lts-17.5"
makedepends="ncurses-devel"
short_desc="Haskell source code suggestions"
maintainer="Inokentiy Babushkin <twk@twki.de>"
license="BSD-3-Clause"
homepage="https://github.com/ndmitchell/${pkgname}"
homepage="https://github.com/ndmitchell/hlint"
distfiles="https://github.com/ndmitchell/${pkgname}/archive/v${version}.tar.gz"
checksum=207539d3627efd3caed9e6fd3b1aeb8f1eb64553f1f9f166090adbf2fb71e172
checksum=fcdeefcc79a52206add44b409abcab48c5fe2adff9d5aff077acbc43c702b54e
nocross=yes # Can't yet cross compile Haskell
nopie_files="/usr/bin/hlint"