Commit graph

213 commits

Author SHA1 Message Date
Sridhar Ratnakumar
480c569e3b
flake.lock: Update (#57)
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/125efbd96af28ea5d60e00a3eed832ea3f49a93b' (2022-09-14)
  → 'github:nixos/nixpkgs/0cfb3c002b61807ca0bab3efe514476bdf2e5478' (2022-09-17)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-09-17 21:17:44 -04:00
Sridhar Ratnakumar
313bada7c5
readme: mention bin/run 2022-09-15 11:54:34 -04:00
Sridhar Ratnakumar
a3b3825576 Update all inputs 2022-09-14 16:47:03 -04:00
Sridhar Ratnakumar
b0d4644673 Hint at overrides 2022-09-14 16:46:58 -04:00
Sridhar Ratnakumar
dc693ae217 Delegate the bulk of README to srid.ca 2022-09-04 11:25:11 -04:00
Sridhar Ratnakumar
5984ff88c1 Simplify .gitignore 2022-09-03 10:33:32 -04:00
Sridhar Ratnakumar
351f164ba1 hlint: add a custom rule as illustration 2022-09-03 10:27:38 -04:00
Sridhar Ratnakumar
9f145246db hlint: autoformat, and add comment 2022-09-03 10:27:25 -04:00
Sridhar Ratnakumar
f802270734 Remove garnix.yaml (document it instead) 2022-09-03 10:24:13 -04:00
Sridhar Ratnakumar
7ada5d6139
flake.lock: Update (#53)
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/0e304ff0d9db453a4b230e9386418fd974d5804a' (2022-08-24)
  → 'github:nixos/nixpkgs/21de2b973f9fee595a7a1ac4693efff791245c34' (2022-09-02)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-09-03 10:24:04 -04:00
Sridhar Ratnakumar
8052faf2bf
Allow update flake lock action to run CI
https://github.com/DeterminateSystems/update-flake-lock#with-a-personal-authentication-token
2022-09-03 10:21:19 -04:00
Sherub Thakur
a439b2b529
Remove redundant dependencies (#51)
Since Relude (>= 1.0) reexports most common modules from the following libraries
  - containers
  - unordered-containers
  - text
  - bytestring
So we can remove these from our build-depends list.

More information: https://github.com/kowainik/relude/issues/353
2022-09-01 20:24:41 -04:00
Sridhar Ratnakumar
9080aef7fb
Remove tests; just document how to add it (#50) 2022-09-01 20:04:57 -04:00
Sridhar Ratnakumar
5cfb230f15
Add a flake check for HLS (#47)
Also use check-flake for .#check package.

Deal with network access by disabling sandbox, and excluding in garnix.
2022-08-28 18:50:08 -04:00
github-actions[bot]
b003dbdd1a
flake.lock: Update (#45) 2022-08-27 20:23:10 -04:00
github-actions[bot]
582eff12b4
flake.lock: Update (#42)
Flake lock file updates:

• Updated input 'flake-parts':
    'github:hercules-ci/flake-parts/608ed3502263d6f4f886d75c48fc2b444a4ab8d8' (2022-07-06)
  → 'github:hercules-ci/flake-parts/850d8a76026127ef02f040fb0dcfdb8b749dd9d9' (2022-08-20)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/65c15b0a26593a77e65e4212d8d9f58d83844f07' (2022-08-13)
  → 'github:nixos/nixpkgs/921b28fa6ed61f6275fdebfec25b630dd1e4f378' (2022-08-19)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-20 21:17:35 -04:00
Sridhar Ratnakumar
c580715c6d
readme: link to Discussions 2022-08-19 19:48:37 -04:00
Sridhar Ratnakumar
8a01584e07 nix: Update treefmt-flake (for nix run .#format) 2022-08-18 15:42:17 -04:00
Sridhar Ratnakumar
85f9b3e17b Add hie.yaml, to specify stanza for src/*
Fixes #37
2022-08-18 11:21:18 -04:00
Sridhar Ratnakumar
134332ccf5
Add treefmt check (#36)
Also add garnix checks.
2022-08-17 14:23:47 -04:00
github-actions[bot]
09928163e0
flake.lock: Update (#34) 2022-08-13 21:03:57 -04:00
Sridhar Ratnakumar
70ab91e434 Update haskell-flake 2022-08-12 11:44:52 -04:00
Sridhar Ratnakumar
71aea50f8e vscode: may need pure nix-shell 2022-08-09 18:51:09 -04:00
Sridhar Ratnakumar
2340afbdfa bin/hoogle: use nix develop 2022-08-08 11:46:04 -04:00
Sridhar Ratnakumar
ce7fa306e5 Ignore environment in nix shell 2022-08-08 11:30:16 -04:00
Sridhar Ratnakumar
947153ae4a Remove Serokell flake link 2022-08-08 11:29:55 -04:00
EvanPiro
df6efcff60
bin/test: run test, and reload on library change (#32)
* test script now runs on test file update

* added src to cabal tests to get auto reload

* fixed formatting

* removed unneeded test dependency

* fixed cabal formatting issue

* Remove library stanza; no longer needed

* hs-source-dirs belongs to shared

Because we are sharing 'src'

* Fix compilation

* Move other-modules as well.

Co-authored-by: Sridhar Ratnakumar <srid@srid.ca>
2022-08-08 11:02:43 -04:00
github-actions[bot]
1aa9e81142
flake.lock: Update (#31) 2022-08-06 20:18:30 -04:00
EvanPiro
c78eaf81c4
Add Test Suite and Library (#30)
* added library and test scaffoding

* Add bin/test

* Update comments

Co-authored-by: Sridhar Ratnakumar <srid@srid.ca>
2022-08-06 18:45:22 -04:00
github-actions[bot]
7cc65c200d
flake.lock: Update (#29) 2022-07-30 20:28:47 -04:00
Sridhar Ratnakumar
66ddecb166
Add info about WSL in README 2022-07-27 15:14:06 -04:00
Sridhar Ratnakumar
6fc5f77e32
CI: build for M1 mac (#28)
* Add garnix.yaml

* enable M1 shell
2022-07-24 11:10:07 -04:00
github-actions[bot]
406e1bd85e
flake.lock: Update (#27)
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/a174de16edfc6aa0893530b9a95d0bd0c2a952b7' (2022-07-21)
  → 'github:nixos/nixpkgs/52dd719bbd13d9f0974e5c3c29c74aa249e5b091' (2022-07-23)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-23 21:47:30 -04:00
Sridhar Ratnakumar
8edc7cacce
nix: Remove treefmt TODO
Don't care much
2022-07-23 10:03:01 -04:00
github-actions[bot]
f25abad0cd
flake.lock: Update (#26)
Flake lock file updates:

• Updated input 'flake-parts':
    'github:hercules-ci/flake-parts/6ac93cfc7f0fea4c889a609b18b3333f10091030' (2022-06-04)
  → 'github:hercules-ci/flake-parts/608ed3502263d6f4f886d75c48fc2b444a4ab8d8' (2022-07-06)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/3802c98cffe636d54dc8f2812d143e50b4b07bb0' (2022-06-17)
  → 'github:nixos/nixpkgs/a174de16edfc6aa0893530b9a95d0bd0c2a952b7' (2022-07-21)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-21 15:42:41 -04:00
Sridhar Ratnakumar
534e102d6d
Periodically update flake.lock (#25) 2022-07-21 15:38:43 -04:00
Sridhar Ratnakumar
7c21b22972 vscode: add manageHLS (set to PATH) 2022-06-28 17:11:14 -04:00
Sridhar Ratnakumar
eccfe28a59
Update README.md 2022-06-19 15:18:51 -04:00
Sridhar Ratnakumar
57b31188f4 Simplify shell.nix using builtins.getFlake
Inspired by: 27322b4d38
2022-06-17 18:08:17 -04:00
Sridhar Ratnakumar
7063530bfd nix: Update inputs 2022-06-17 18:08:00 -04:00
Sridhar Ratnakumar
ccd03a1fc4 nix: update haskell-flake 2022-05-30 19:07:38 -04:00
Sridhar Ratnakumar
45ee5796a4 Update haskell-flake for better default handling 2022-05-30 18:48:39 -04:00
Sridhar Ratnakumar
4717e35671 Advance haskell-flake to fix 'nix run' 2022-05-30 12:31:26 -04:00
Sridhar Ratnakumar
6936c32c6b Update haskell-flake, to fix overrides 2022-05-30 10:50:56 -04:00
Sridhar Ratnakumar
6267d5f29d nix: Update haskell-flake 2022-05-30 10:37:20 -04:00
Sridhar Ratnakumar
6c9e2eb087 hie.yaml is redundant; HLS works without it 2022-05-30 09:25:48 -04:00
Sridhar Ratnakumar
18b6248dce Trim down flake-compat usage (#23) 2022-05-30 09:24:56 -04:00
Sridhar Ratnakumar
1127faaba2
Delegate most Nix to srid/haskell-flake (a flake-parts module for Haskell dev) (#22)
* Move Haskell stuff into separate module

cf. https://github.com/hercules-ci/flake-parts/blob/main/modules/apps.nix

* Parametrize the haskell part

* Allow user to override default attrs

* Add baseBuildTools (so they can be overriden)

* Don't hardcode non-essential build tools

* Avoid types.anything

* Merge into one buildTools, using sets

* getExe and type are redundant

Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>

* Use docstring wherever possible

* Use ${self} as default for root

* Allow defining multiple Haskell packages

The downside: the user is forced to define 'default' flake outputs.

* Automatically create 'default' attr if a singleton projects set

* Make haskell.nix its own repo

Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
2022-05-30 09:16:38 -04:00
Sridhar Ratnakumar
3fc6858830 nix: Update nixpkgs, and use 'flakeExposed' for systems list 2022-05-27 16:31:08 -04:00
Sridhar Ratnakumar
a2f0e945e0 nix: Use getExe 2022-05-27 15:30:21 -04:00