-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This removes the pre-flake Nix support as well as Stack support. It also moves some jobs from GitHub CI to Garnix – namely, any ghc version that nixpkgs contains, plus hlint and ormolu.
- Loading branch information
Showing
21 changed files
with
734 additions
and
129 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
((nil | ||
(fill-column . 80) | ||
(indent-tabs-mode . nil) | ||
(sentence-end-double-space . nil))) |
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 @@ | ||
### This configures basic cross-editor formatting. | ||
### | ||
### See https://editorconfig.org/ for more info, and to see if your editor | ||
### requires a plugin to take advantage of it. | ||
|
||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
indent_size = 2 | ||
indent_style = space | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.{diff,patch}] | ||
trim_trailing_whitespace = false | ||
|
||
[*.{el,lisp}] | ||
## Lisps have a fairly consistent indentation style that doesn’t collapse well | ||
## to a single value, so we let the editor do what it wants here. | ||
indent_size = unset |
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 |
---|---|---|
@@ -1 +1 @@ | ||
use nix | ||
use flake |
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 |
---|---|---|
@@ -1,22 +1,10 @@ | ||
dist | ||
dist-* | ||
cabal-dev | ||
*.o | ||
*.hi | ||
*.chi | ||
*.chs.h | ||
*.dyn_o | ||
*.dyn_hi | ||
.hpc | ||
.hsenv | ||
.cabal-sandbox/ | ||
cabal.sandbox.config | ||
*.prof | ||
*.aux | ||
*.hp | ||
*.eventlog | ||
.stack-work/ | ||
cabal.project.local | ||
cabal.project.local~ | ||
.HTF/ | ||
.ghc.environment.* | ||
# Direnv | ||
/.direnv | ||
|
||
# Nix build | ||
/outputs | ||
/result | ||
/source | ||
|
||
# Cabal build | ||
dist-newstyle |
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,40 @@ | ||
- ignore: {name: "Eta reduce"} | ||
- ignore: {name: "Evaluate"} | ||
- ignore: {name: "Reduce duplication"} | ||
- ignore: {name: "Use list comprehension"} | ||
- ignore: {name: "Use section"} | ||
|
||
- package: | ||
name: monad | ||
modules: | ||
- import Control.Monad | ||
|
||
- package: | ||
name: traversable | ||
modules: | ||
- import Data.Foldable | ||
- import Data.Traversable | ||
|
||
- group: | ||
name: generalize | ||
imports: | ||
- package monad | ||
- package traversable | ||
rules: | ||
- warn: {lhs: forM, rhs: for} | ||
- warn: {lhs: forM_, rhs: for_} | ||
- warn: {lhs: map, rhs: fmap} | ||
- warn: {lhs: mapM, rhs: traverse} | ||
- warn: {lhs: mapM_, rhs: traverse_} | ||
- warn: {lhs: return, rhs: pure} | ||
- warn: {lhs: sequence, rhs: sequenceA} | ||
- warn: {lhs: sequence_, rhs: sequenceA_} | ||
|
||
- group: | ||
name: generalize | ||
imports: | ||
- package traversable | ||
rules: | ||
- hint: {lhs: maybe (pure ()), rhs: traverse_, note: IncreasesLaziness} | ||
- warn: {lhs: mappend, rhs: (<>)} | ||
- warn: {lhs: (++), rhs: (<>)} |
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 |
---|---|---|
@@ -1,6 +1,8 @@ | ||
tests: True | ||
|
||
packages: | ||
./core/yaya.cabal | ||
./core-test/yaya-test.cabal | ||
./hedgehog/yaya-hedgehog.cabal | ||
./unsafe/yaya-unsafe.cabal | ||
./unsafe-test/yaya-unsafe-test.cabal | ||
./core/yaya.cabal | ||
./core-test/yaya-test.cabal | ||
./hedgehog/yaya-hedgehog.cabal | ||
./unsafe/yaya-unsafe.cabal | ||
./unsafe-test/yaya-unsafe-test.cabal |
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.
Oops, something went wrong.