osc copypac from project:devel:languages:haskell:ghc-9.4.x package:hlint revision:3, using keep-link
OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/hlint?expand=0&rev=25
This commit is contained in:
parent
06d403de07
commit
4ee31a1ee8
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:6f9c3d9603a072e1b76d3ee125dfaa54ce356fc0ced836affa741d989bedcf7c
|
||||
size 159088
|
3
hlint-3.5.tar.gz
Normal file
3
hlint-3.5.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:98bd120a10a086c17d6bf1176a510dc12b36581e5a901f1e024555bb3ccead4f
|
||||
size 173976
|
181
hlint.cabal
181
hlint.cabal
@ -1,181 +0,0 @@
|
||||
cabal-version: >= 1.18
|
||||
build-type: Simple
|
||||
name: hlint
|
||||
version: 3.2.7
|
||||
x-revision: 2
|
||||
license: BSD3
|
||||
license-file: LICENSE
|
||||
category: Development
|
||||
author: Neil Mitchell <ndmitchell@gmail.com>
|
||||
maintainer: Neil Mitchell <ndmitchell@gmail.com>
|
||||
copyright: Neil Mitchell 2006-2021
|
||||
synopsis: Source code suggestions
|
||||
description:
|
||||
HLint gives suggestions on how to improve your source code.
|
||||
homepage: https://github.com/ndmitchell/hlint#readme
|
||||
bug-reports: https://github.com/ndmitchell/hlint/issues
|
||||
data-dir: data
|
||||
data-files:
|
||||
hlint.yaml
|
||||
default.yaml
|
||||
Test.hs
|
||||
report_template.html
|
||||
hs-lint.el
|
||||
hlint.1
|
||||
hlint.ghci
|
||||
HLint_QuickCheck.hs
|
||||
HLint_TypeCheck.hs
|
||||
extra-source-files:
|
||||
.hlint.yaml
|
||||
data/*.hs
|
||||
data/*.yaml
|
||||
tests/*.test
|
||||
extra-doc-files:
|
||||
README.md
|
||||
CHANGES.txt
|
||||
tested-with: GHC==8.10, GHC==8.8, GHC==8.6
|
||||
|
||||
source-repository head
|
||||
type: git
|
||||
location: https://github.com/ndmitchell/hlint.git
|
||||
|
||||
flag threaded
|
||||
default: True
|
||||
manual: True
|
||||
description: Build with support for multithreaded execution
|
||||
|
||||
flag gpl
|
||||
default: True
|
||||
manual: True
|
||||
description: Use GPL libraries, specifically hscolour
|
||||
|
||||
flag ghc-lib
|
||||
default: False
|
||||
manual: True
|
||||
description: Force dependency on ghc-lib-parser even if GHC API in the ghc package is supported
|
||||
|
||||
flag hsyaml
|
||||
default: False
|
||||
manual: True
|
||||
description: Use HsYAML instead of yaml
|
||||
|
||||
library
|
||||
build-depends: aeson <1.6
|
||||
|
||||
default-language: Haskell2010
|
||||
build-depends:
|
||||
base == 4.*, process, filepath, directory, containers,
|
||||
unordered-containers, vector, text, bytestring,
|
||||
transformers,
|
||||
file-embed,
|
||||
utf8-string,
|
||||
data-default >= 0.3,
|
||||
cpphs >= 1.20.1,
|
||||
cmdargs >= 0.10,
|
||||
uniplate >= 1.5,
|
||||
ansi-terminal >= 0.8.1,
|
||||
extra >= 1.7.3 && < 1.7.10,
|
||||
refact >= 0.3,
|
||||
aeson >= 1.1.2.0,
|
||||
filepattern >= 0.1.1
|
||||
|
||||
if !flag(ghc-lib) && impl(ghc >= 8.10.0) && impl(ghc < 8.11.0)
|
||||
build-depends:
|
||||
ghc == 8.10.*,
|
||||
ghc-boot-th,
|
||||
ghc-boot
|
||||
else
|
||||
build-depends:
|
||||
ghc-lib-parser == 8.10.*
|
||||
build-depends:
|
||||
ghc-lib-parser-ex >= 8.10.0.17 && < 8.10.1
|
||||
|
||||
if flag(gpl)
|
||||
build-depends: hscolour >= 1.21
|
||||
else
|
||||
cpp-options: -DGPL_SCARES_ME
|
||||
|
||||
if flag(hsyaml)
|
||||
build-depends:
|
||||
HsYAML >= 0.2,
|
||||
HsYAML-aeson >= 0.2
|
||||
cpp-options: -DHS_YAML
|
||||
else
|
||||
build-depends: yaml >= 0.5.0
|
||||
|
||||
hs-source-dirs: src
|
||||
exposed-modules:
|
||||
Language.Haskell.HLint
|
||||
other-modules:
|
||||
Paths_hlint
|
||||
Apply
|
||||
CmdLine
|
||||
Extension
|
||||
Fixity
|
||||
HLint
|
||||
HsColour
|
||||
Idea
|
||||
Report
|
||||
Util
|
||||
Parallel
|
||||
Refact
|
||||
Timing
|
||||
CC
|
||||
EmbedData
|
||||
Summary
|
||||
Config.Compute
|
||||
Config.Haskell
|
||||
Config.Read
|
||||
Config.Type
|
||||
Config.Yaml
|
||||
|
||||
GHC.All
|
||||
GHC.Util
|
||||
GHC.Util.ApiAnnotation
|
||||
GHC.Util.View
|
||||
GHC.Util.Brackets
|
||||
GHC.Util.DynFlags
|
||||
GHC.Util.FreeVars
|
||||
GHC.Util.HsDecl
|
||||
GHC.Util.HsExpr
|
||||
GHC.Util.SrcLoc
|
||||
GHC.Util.Scope
|
||||
GHC.Util.Unify
|
||||
|
||||
Hint.All
|
||||
Hint.Bracket
|
||||
Hint.Comment
|
||||
Hint.Duplicate
|
||||
Hint.Export
|
||||
Hint.Extensions
|
||||
Hint.Fixities
|
||||
Hint.Import
|
||||
Hint.Lambda
|
||||
Hint.List
|
||||
Hint.ListRec
|
||||
Hint.Match
|
||||
Hint.Monad
|
||||
Hint.Naming
|
||||
Hint.NewType
|
||||
Hint.Pattern
|
||||
Hint.Pragma
|
||||
Hint.Restrict
|
||||
Hint.Smell
|
||||
Hint.Type
|
||||
Hint.Unsafe
|
||||
Test.All
|
||||
Test.Annotations
|
||||
Test.InputOutput
|
||||
Test.Util
|
||||
|
||||
|
||||
executable hlint
|
||||
default-language: Haskell2010
|
||||
build-depends: base, hlint
|
||||
main-is: src/Main.hs
|
||||
|
||||
-- See https://github.com/ndmitchell/hlint/pull/1169 for benchmarks
|
||||
-- that indicate -A32 is a good idea
|
||||
ghc-options: -rtsopts -with-rtsopts=-A32m
|
||||
if flag(threaded)
|
||||
ghc-options: -threaded
|
102
hlint.changes
102
hlint.changes
@ -1,3 +1,105 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Sep 20 08:40:56 UTC 2022 - Peter Simons <psimons@suse.com>
|
||||
|
||||
- Update hlint to version 3.5.
|
||||
3.5, released 2022-09-20
|
||||
#1421, change zip/repeat to map with tuple section
|
||||
#1418, add more QuickCheck hints
|
||||
#1420, suggest use of Data.Tuple.Extra.both in the extra hints
|
||||
#1407, fix some list-comp hints that applied too broadly
|
||||
#1407, suggest [ f x | x <- [y] ] to [f y]
|
||||
#1417, add some more isAlpha/isDigit suggestions
|
||||
#1411, add some empty list equivalent to "" hints
|
||||
#1416, add hints for (== True) and other bool/section values
|
||||
#1410, remove support for building with GHC 8.10
|
||||
* #1410, always default to using ghc-parser instead of the GHC API
|
||||
* #1410, upgrade to the GHC 9.4 parse tree
|
||||
#1408, evaluate calls of map with empty/singleton lists
|
||||
#1409, add notNull hints, e.g. notNull . concat ==> any notNull
|
||||
#1406, spot list comprehension that should be lefts/rights
|
||||
#1404, add more if/then/else to min or max hints
|
||||
#1403, add last . reverse ==> head
|
||||
#1397, evaluation rules for minimum/maximum on singleton lists
|
||||
3.4.1, released 2022-07-10
|
||||
#1345, add --generate-config to generate a complete config
|
||||
#1345, add --generate-summary-json
|
||||
#1377, make anyM/allM on [] produce pure, rather than return
|
||||
#1377, add a pure rule for every return variant
|
||||
#1380, add counts as comments for --default
|
||||
#1372, remove unnecessary brackets when suggesting forM_
|
||||
#1372, suggest void (forM x y) to forM_ without the void
|
||||
#1394, replace maximum [a, b] ==> max a b (and for min)
|
||||
#1393, for QuickCheck, join . elements ==> oneOf
|
||||
#1387, bypass camelCase hint for new tasty_... custom test prefix
|
||||
3.4, released 2022-04-24
|
||||
#1360, make -XHaskell2010 still obey CPP pragmas
|
||||
#1368, make TH quotation bracket rule off by default
|
||||
#1367, add brackets on refactoring templates when needed
|
||||
#1348, make module restrict hints more powerful
|
||||
#1363, add more hints for <$>
|
||||
#1362, add support for language specifier GHC2021
|
||||
#1342, make module wildcards work with `within` restrictions
|
||||
#1340, include Restriction hints in splitSettings and argsSettings output
|
||||
#1330, make ignore: {} not ignore subsequent hints
|
||||
#1317, evaluating all/any/allM/anyM on simple lists
|
||||
#1303, allow more matches for modules doing `import Prelude ()`
|
||||
#1324, add createModuleExWithFixities
|
||||
#1336, warn on unused OverloadedRecordDot
|
||||
#1334, don't remove TypeApplications if there are type-level type applications
|
||||
#1332, suggest using iterate instead of scanl/foldl
|
||||
#1331, suggest using min/max instead of if
|
||||
* #1247, move to GHC 9.2
|
||||
3.3.6, released 2021-12-29
|
||||
#1326, produce release binaries
|
||||
3.3.5, released 2021-12-12
|
||||
#1304, support aeson-2.0
|
||||
#1309, suggest `either Left f x` becomes `f =<< x`
|
||||
#1295, suggest TemplateHaskell to TemplateHaskellQuotes if it works
|
||||
#1292, don't say redundant bracket around pattern splices
|
||||
#1289, suggest expanding tuple sections in some cases
|
||||
#1289, suggest length [1..n] ==> max 0 n
|
||||
#1279, suggest using NumericUnderscores more if it is enabled
|
||||
#1290, move reverse out of filter
|
||||
3.3.4, released 2021-08-30
|
||||
#1288, fix generation of Linux binaries
|
||||
3.3.3, released 2021-08-29
|
||||
#1286, compatibility with extra-1.7.10
|
||||
#114, if OverloadedLists are enabled, don't suggest list literals
|
||||
3.3.2, released 2021-08-28
|
||||
#1244, add `only` restriction to modules
|
||||
#1278, make --ignore-glob patterns also ignore directories
|
||||
#1268, move nub/sort/reverse over catMaybes/lefts/rights
|
||||
#1276, fix some incorrect unused LANGUAGE warnings
|
||||
#1271, suggest foldr (<>) mempty ==> fold (not mconcat)
|
||||
#1274, make the (& f) ==> f hint apply more
|
||||
#1264, suggest eta reduction under a where
|
||||
#1266, suggest () <$ x ==> void x
|
||||
#1223, add some traverse laws
|
||||
#1254, suggest null [x] ==> False
|
||||
#1253, suggest reverse . init ==> tail . reverse
|
||||
#1253, suggest null . concat ==> all null
|
||||
#1255, suggest filter instead of list comprehension in teaching
|
||||
3.3.1, released 2021-04-26
|
||||
#1221, allow restrictions to use wildcards
|
||||
#1225, treat A{} as not-atomic for bracket hints
|
||||
#1233, -XHaskell98 and -XHaskell2010 now disable extensions too
|
||||
#1226, don't warn on top-level splices with brackets
|
||||
#1230, disable LexicalNegation by default
|
||||
#1219, suggest uncurry f (a, b) ==> f a b
|
||||
#1227, remove some excess brackets generated by refactoring
|
||||
3.3, released 2021-03-14
|
||||
#1212, don't suggest redundant brackets on $(x)
|
||||
#1215, suggest varE 'foo ==> [|foo|]
|
||||
#1215, allow matching on Template Haskell variables
|
||||
#1216, require apply-refact 0.9.1.0
|
||||
* #1209, switch to the GHC 9.0.1 parse tree
|
||||
Drop GHC 8.6 support
|
||||
#1206, require apply-refact 0.9.0.0 or higher
|
||||
#1205, generalize hints which were with '&' form
|
||||
3.2.8, released 2021-12-27
|
||||
#1304, support aeson-2.0
|
||||
#1286, compatibility with extra-1.7.10
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 11 09:47:12 UTC 2021 - Peter Simons <psimons@suse.com>
|
||||
|
||||
|
11
hlint.spec
11
hlint.spec
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package hlint
|
||||
#
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -18,13 +18,12 @@
|
||||
|
||||
%global pkg_name hlint
|
||||
Name: %{pkg_name}
|
||||
Version: 3.2.7
|
||||
Version: 3.5
|
||||
Release: 0
|
||||
Summary: Source code suggestions
|
||||
License: BSD-3-Clause
|
||||
URL: https://hackage.haskell.org/package/%{name}
|
||||
Source0: https://hackage.haskell.org/package/%{name}-%{version}/%{name}-%{version}.tar.gz
|
||||
Source1: https://hackage.haskell.org/package/%{name}-%{version}/revision/2.cabal#/%{name}.cabal
|
||||
BuildRequires: chrpath
|
||||
BuildRequires: ghc-Cabal-devel
|
||||
BuildRequires: ghc-aeson-devel
|
||||
@ -34,14 +33,13 @@ BuildRequires: ghc-cmdargs-devel
|
||||
BuildRequires: ghc-containers-devel
|
||||
BuildRequires: ghc-cpphs-devel
|
||||
BuildRequires: ghc-data-default-devel
|
||||
BuildRequires: ghc-deriving-aeson-devel
|
||||
BuildRequires: ghc-directory-devel
|
||||
BuildRequires: ghc-extra-devel
|
||||
BuildRequires: ghc-file-embed-devel
|
||||
BuildRequires: ghc-filepath-devel
|
||||
BuildRequires: ghc-filepattern-devel
|
||||
BuildRequires: ghc-ghc-boot-devel
|
||||
BuildRequires: ghc-ghc-boot-th-devel
|
||||
BuildRequires: ghc-ghc-devel
|
||||
BuildRequires: ghc-ghc-lib-parser-devel
|
||||
BuildRequires: ghc-ghc-lib-parser-ex-devel
|
||||
BuildRequires: ghc-hscolour-devel
|
||||
BuildRequires: ghc-process-devel
|
||||
@ -77,7 +75,6 @@ This package provides the Haskell %{name} library development files.
|
||||
|
||||
%prep
|
||||
%autosetup
|
||||
cp -p %{SOURCE1} %{name}.cabal
|
||||
|
||||
%build
|
||||
%ghc_lib_build
|
||||
|
Loading…
Reference in New Issue
Block a user