-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Commit forgotten cabal file update * Add conventional .hlint.yaml This is the one from megarepo, but with the following tweaks: - Adjust "within" on the restricted-qualification ignore - Add an ignore for "Use Just" * Standardize test executable For a typical project (library), we use Spec.hs, not Main.hs. We use Main.hs with a Spec.hs when we need to customize the runner. Remove --module-name=Main.hs, as that's the default. * Try newer HLint for glob support * Move to haskell/actions implementation haskell/actions#81 * Fixup
- Loading branch information
Showing
6 changed files
with
71 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
- ignore: {name: "Redundant do", within: spec} | ||
- ignore: {name: "Eta reduce"} | ||
- ignore: {name: "Use list comprehension"} | ||
- ignore: {name: "Reduce duplication"} | ||
- ignore: {name: "Use fmap"} # we use classy prelude so this would be in error | ||
- ignore: {name: "Avoid restricted function", within: "**.Prelude"} # allow "as X" | ||
- ignore: {name: "Use ."} # commonly broken or less readable | ||
- ignore: {name: "Use &&"} # we like "and" at 3+ elements | ||
- ignore: {name: "Use ||"} # we like "or" at 3+ elements | ||
- ignore: {name: "Use join"} # this often leads to cryptic code when do notation is easier to read | ||
- ignore: {name: "Use Just"} # makes code less readable | ||
- ignore: {name: "Redundant ^."} # commonly broken by esqueleto | ||
|
||
# Custom Warnings | ||
- warn: {lhs: mapM, rhs: traverse} | ||
- warn: {lhs: mapM_, rhs: traverse_} | ||
- warn: {lhs: forM, rhs: for} | ||
- warn: {lhs: forM_, rhs: for_} | ||
- warn: {lhs: return, rhs: pure} | ||
|
||
# Specify additional command line arguments | ||
- arguments: | ||
- -XBangPatterns | ||
- -XDataKinds | ||
- -XDeriveAnyClass | ||
- -XDeriveFoldable | ||
- -XDeriveFunctor | ||
- -XDeriveGeneric | ||
- -XDeriveLift | ||
- -XDeriveTraversable | ||
- -XDerivingStrategies | ||
- -XFlexibleContexts | ||
- -XFlexibleInstances | ||
- -XGADTs | ||
- -XGeneralizedNewtypeDeriving | ||
- -XLambdaCase | ||
- -XMultiParamTypeClasses | ||
- -XNoImplicitPrelude | ||
- -XNoMonomorphismRestriction | ||
- -XOverloadedStrings | ||
- -XQuasiQuotes | ||
- -XRankNTypes | ||
- -XRecordWildCards | ||
- -XScopedTypeVariables | ||
- -XStandaloneDeriving | ||
- -XTypeApplications | ||
- -XTypeFamilies | ||
|
||
- modules: | ||
- {name: [Data.Set], as: Set} | ||
- {name: [Data.Map], as: Map} | ||
- {name: [Data.HashSet], as: HashSet} | ||
- {name: [Data.HashMap.Strict], as: HashMap} | ||
- {name: [Data.Text], as: T} | ||
- {name: [Data.Text.Encoding], as: T} | ||
- {name: [Data.Text.IO], as: T} | ||
- {name: [Data.Text.Lazy], as: TL} | ||
- {name: [Data.Text.Lazy.Encoding], as: TL} | ||
- {name: [Data.Text.IO.Lazy], as: TL} | ||
- {name: [Data.ByteString], as: BS} | ||
- {name: [Data.ByteString.Lazy], as: BSL} | ||
- {name: [Data.ByteString.Char8], as: BS8} | ||
- {name: [Data.ByteString.Lazy.Char8], as: BSL8} | ||
- {name: [Data.List.NonEmpty], as: NE} | ||
- {name: [Data.Sequence], as: Seq} |
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 was deleted.
Oops, something went wrong.
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 @@ | ||
{-# OPTIONS_GHC -F -pgmF hspec-discover -Wno-missing-export-lists #-} |