-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
By default use latest GHC to run HLint
- Loading branch information
Showing
5 changed files
with
96 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{-# LANGUAGE DeriveGeneric #-} | ||
module HaskellCI.Config.Doctest where | ||
|
||
import Distribution.Version | ||
import GHC.Generics (Generic) | ||
|
||
data DoctestConfig = DoctestConfig | ||
{ cfgDoctestEnabled :: !Bool | ||
, cfgDoctestOptions :: [String] | ||
, cfgDoctestVersion :: !VersionRange | ||
} | ||
deriving (Show, Generic) | ||
|
||
defaultDoctestVersion :: VersionRange | ||
defaultDoctestVersion = withinVersion (mkVersion [0,16]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{-# LANGUAGE DeriveGeneric #-} | ||
module HaskellCI.Config.HLint where | ||
|
||
import Distribution.Version | ||
import GHC.Generics (Generic) | ||
|
||
data HLintJob | ||
= HLintJobLatest -- ^ run with latest GHC | ||
| HLintJob Version -- ^ run with specified GHC version | ||
deriving Show | ||
|
||
data HLintConfig = HLintConfig | ||
{ cfgHLintEnabled :: !Bool | ||
, cfgHLintJob :: !HLintJob | ||
, cfgHLintYaml :: !(Maybe FilePath) | ||
, cfgHLintVersion :: !VersionRange | ||
, cfgHLintOptions :: [String] | ||
} | ||
deriving (Show, Generic) | ||
|
||
defaultHLintVersion :: VersionRange | ||
defaultHLintVersion = withinVersion (mkVersion [2,1]) |