Skip to content

Commit

Permalink
HaskellLintBear: Use CabalRequirement
Browse files Browse the repository at this point in the history
Closes #1358
  • Loading branch information
saksham189 committed Jul 20, 2018
1 parent 158792e commit efdfbc1
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion bears/haskell/HaskellLintBear.py
@@ -1,6 +1,10 @@
import json

from coalib.bearlib.abstractions.Linter import linter
from dependency_management.requirements.AnyOneOfRequirements import (
AnyOneOfRequirements)
from dependency_management.requirements.CabalRequirement import (
CabalRequirement)
from dependency_management.requirements.DistributionRequirement import (
DistributionRequirement)
from coalib.results.Diff import Diff
Expand All @@ -19,7 +23,13 @@ class HaskellLintBear:
"""

LANGUAGES = {'Haskell'}
REQUIREMENTS = {DistributionRequirement(apt_get='hlint')}
REQUIREMENTS = {
AnyOneOfRequirements(
[CabalRequirement(package='hlint', version='1.9.27'),
DistributionRequirement(apt_get='hlint'),
],
),
}
AUTHORS = {'The coala developers'}
AUTHORS_EMAILS = {'coala-devel@googlegroups.com'}
LICENSE = 'AGPL-3.0'
Expand Down

0 comments on commit efdfbc1

Please sign in to comment.