Commit Graph

95 Commits

Author SHA1 Message Date
Flake Update Bot
790c3c14b0
Automatically update flake.lock to the latest version
hackage     5153fdaef0 (2024-07-08) -> b3791d613c (2024-08-12)
haskell-nix 34946405e8 (2024-06-21) -> ed955c92e9 (2024-08-07)
stackage    c84e07a4e0 (2024-07-06) -> 59815bef89 (2024-08-11)
2024-08-12 02:03:08 +00:00
Ivan Gromakovskii
a8eb95dea3
Merge pull request #33 from serokell/gromak/ci-updates
[Chore] Update CI
2024-07-09 15:04:53 +02:00
Ivan Gromakovskii
6902102355
Trigger CI on push to master and on PR
Problem: CI is triggered only on push, so it won't work in case of
PRs from forks.
Solution: trigger it on PRs as well. Trigger on push only when the
branch is master.
If you want to run on push to your feature branch, you can edit
check.yml in your branch.
2024-07-09 09:44:07 +02:00
Flake Update Bot
6edacff35c
Automatically update flake.lock to the latest version
hackage     a62dac66a9 (2024-05-13) -> 5153fdaef0 (2024-07-08)
haskell-nix 28fceff2ef (2024-01-10) -> 34946405e8 (2024-06-21)
nixpkgs     sha256-dd/ (1970-01-01) -> fe065f84d7 (2024-07-01)
stackage    207b7104d5 (2024-05-12) -> c84e07a4e0 (2024-07-06)
2024-07-08 13:53:56 +02:00
Ivan Gromakovskii
516906a03b
[Chore] Update GHC versions tested by CI
Problem: we've recently supported ghc-9.10.1, but it's not tested
by CI. Also we're still testing ghc-8.8.4, which is rather old and
causes some troubles when updating Nix dependencies.

Solution: add 9.10.1 to tested GHC versions, remove 8.8.4.
2024-07-08 13:50:28 +02:00
Erik de Castro Lopo
b51ff1d1d7
Make it build with ghc-9.10 (#32)
And bump `filepath` dependency.
2024-07-08 14:38:04 +03:00
serokell-bot
abfd13f909
Automatically update flake.lock to the latest version (#29)
hackage  de3d2b30f3 (2024-01-17) -> a62dac66a9 (2024-05-13)
nixpkgs  f724378e61 (2024-01-15) -> sha256-dd/ (1970-01-01)
stackage ad9de7aee0 (2024-01-17) -> 207b7104d5 (2024-05-12)
2024-05-14 13:37:44 +03:00
serokell-bot
a24ddd0955
Automatically update flake.lock to the latest version (#28)
hackage  5889a4e063 (2024-01-10) -> de3d2b30f3 (2024-01-17)
nixpkgs  4a0f28c92f (2023-12-12) -> f724378e61 (2024-01-15)
stackage 518634e42d (2024-01-10) -> ad9de7aee0 (2024-01-17)
2024-01-17 14:13:23 +03:00
Ivan Gromakovskii
cf6e31475d
Merge pull request #27 from serokell/gromak/ghc-9.8
Support GHC-9.8
2024-01-17 10:41:25 +01:00
Ivan Gromakovskii
fbded8b48e
Bump the version of the package
Problem: we want to make a new release to support latest
GHC versions, but there was a deprecation in recent changes.

Solution: make a major version bump, set the new version to
1.1.0.0.
2024-01-16 22:07:28 +01:00
Ivan Gromakovskii
8b4d41a6bd
Deprecate Data.Text.IO.Utf8
Problem: text-2.1 has Data.Text.IO.Utf8 whose name conflicts with
our module with the same name.

Solution: our module contains 2 functions: `readFile` and `writeFile`.
They are implemented differently from `text` versions, but look
semantically equivalent. Our functions are also polymorphic in the
monad type, but that's orthogonal to the purpose of this package,
so we can sacrifice this polymorphism.
So it looks like our module doesn't add much value anymore and should
be deleted.
However, it's a good practice to deprecate something before deleting,
so we deprecate this module instead. It will be deleted in a future
version.
Note that the same module for lazy Text remains intact, since there
are apparently no such functions for lazy Text in text-2.1.
2024-01-16 22:00:20 +01:00
Ivan Gromakovskii
5af632dcea
Make tests compile with text-2.1
Problem: tests do not compile when text-2.1 is used, because
there are is a conflict in module names.
`Data.Text.IO.Utf8` was added to `text` in version 2.1.
GHC reports ambiguous modules error.

Solution: specify the package explicitly using the PackageImports
extension.
2024-01-16 21:20:24 +01:00
Ivan Gromakovskii
02b0bf97f9
Update stackage resolver
Problem: lts-18.14 is old and used in stack.yaml.
Solution: update it to the latest lts resolver (22.5).
Also remove unnecessary extra-deps.
2024-01-10 22:34:19 +01:00
Ivan Gromakovskii
2328ae89a0
Test GHC 9.6 and 9.8 on CI 2024-01-10 22:34:10 +01:00
Erik de Castro Lopo
0561267c35
Make it build with ghc-9.8 2024-01-10 22:33:15 +01:00
Ivan Gromakovskii
1c7297492e
Merge pull request #23 from serokell/automatic-update
Automatically update flake.lock to the latest version
2024-01-10 22:32:32 +01:00
Ivan Gromakovskii
9445595c60
Disable one HLint warning
Problem: recent Hlint fails on Main.hs thinking that
enabling TemplateHaskell is redundant.

Solution: it seems to be a bug which is fixed upstream,
but the fixed version is not released yet.
So we just ignore that warning.
2024-01-10 22:29:19 +01:00
Roman Melnikov
80299163e7
[Chore] Bump used GHC versions
Problem: Haskell.nix can no longer bootstrap ghc944.

Soluition: Bump all used GHC versions to the latest within the minor
version.
2024-01-10 22:27:21 +01:00
Roman Melnikov
a91e289cbc
Update stackage.nix and hackage.nix 2024-01-10 22:27:20 +01:00
Ivan Gromakovskii
c0b0fdd33f
Remove redundant brackets 2024-01-10 22:27:19 +01:00
Flake Update Bot
023622e4bb
Automatically update flake.lock to the latest version
haskell-nix fce554bc6a (2023-03-16) -> 8e42ccd7ed (2023-09-26)
nixpkgs     7f5639fa3b (2023-02-26) -> 4a0f28c92f (2023-12-12)
2024-01-10 22:27:18 +01:00
Kárándi Tamás
c090d4b9f0
Merge pull request #26 from serokell/update-checkout-action
[Chore] Update "actions/checkout"
2023-12-12 17:12:20 +01:00
Roman Melnikov
8303d25096
[Chore] Update "actions/checkout"
Problem: node16 is now deprecated and github-runner provided by nixpkgs
no longer supports this runtime. However, "actions/checkout@v3" uses
this runtime.

Solution: Update CI pipeline to use "actions/checkout@v4".
2023-12-12 12:41:14 +01:00
Ivan Gromakovskii
9a83c892f4
Update version to 1.0.2.4 (#21)
We want to release a version which supports text-2.0.* and newer GHC.
Note: I have deleted the hash from the .cabal file, because it's more
convenient when this file is in the repo.
2023-04-07 11:10:04 +02:00
Sereja313
ddd1785a97
[INT-159] Add hpack check (#20)
Problem: We want to be able to check if cabal file is up to date.

Solution: Add hpack check.
2023-04-06 13:27:14 +02:00
Sereja313
d1dc7d55b1
Merge pull request #19 from serokell/Sereja313/update-nix
[Chore] Use new flake template
2023-03-20 23:52:19 +03:00
Sergey Gulin
2629e86f7b
[Chore] Use new flake template
Problem: We have introduced a new template for Haskell libraries and
need to update this package according to this template.

Solution: Use new template, bump dependencies, remove unused license,
apply formatting and hlint suggestions.
2023-03-20 23:46:53 +03:00
Kirill Elagin
e74dcfafbf deps: Allow text-2.0
text-2.0 has been released and everything seems to be working just fine.

I tested with it on GHC 8.10.7 and GHC 9.2.1. I could not test on 9.0.1
due to technical difficulties with haskell.nix, but I suppose it works.

The issue with haskell.nix is that text-2.0 broke an internal interface
used by hashable, so we need a new hashable, but it fails to build for
an unknown reason.
2021-12-27 06:55:38 -05:00
Kirill Elagin
a67af96fc6 fix: Fix a typo in utf8-troubleshoot 2021-11-13 14:58:17 -05:00
Kirill Elagin
f3537cd7c1 meta: Release v1.0.2.3 2021-11-13 14:44:48 -05:00
Kirill Elagin
4df868d067 chore: Cleanup the changelog
- Add missing releases.
- Improve formatting.
2021-11-13 14:04:01 -05:00
Kirill Elagin
5fa3cd8398 chore: Bump deps to build with GHC 9.2.1 2021-11-13 13:56:29 -05:00
Kirill Elagin
6e2ff9b26b chore: Update th-env extra-dep
A new version of th-env has been released, so instead of pulling the
extra-dep from a PR branch, we take the version from Hackage.
2021-11-13 11:37:00 -05:00
Kirill Elagin
b5d99daa52 meta: Remove explicit serokell.nix url
serokell.nix is given in the serokell flake registry, so there is no
need to provide the URL here, it can be resolved just by name.
2021-11-04 09:27:51 -04:00
Kirill Elagin
c0fcebbd95 fix: Remove unused import and add -Werror to builds 2021-11-04 09:12:11 -04:00
Kirill Elagin
9a52a1b4a6 fix: Make exe build on GHC 9
The utf8-troubleshoot executable depends on th-env, which does not yet
work with GHC 9. There is a PR with a fix, so depend on it for now.
2021-11-04 09:12:11 -04:00
Kirill Elagin
8f4ac13090 meta: Use haskell.nix flake lib 2021-11-04 09:12:11 -04:00
Kirill Elagin
e401b2175a meta: Run checks against 8.10.7 2021-11-03 17:41:16 -04:00
Kirill Elagin
369ecd4c86 meta: Use Serokell flake registry
Previously, we were pinning Nix dependencies, such as haskell.nix
manually. Now we simply rely on Serokell’s flake registry, which has the
right versions pinned that are available in the binary cache.
2021-11-03 17:41:16 -04:00
Kirill Elagin
5d67e834a4 meta: Bump LTS to 18.14 (GHC 8.10.7) 2021-11-03 16:19:02 -04:00
Kirill Elagin
63b26842be deps: Allow GHC 9.0.1
* Bump the upper bound on `base` to allow GHC 9.
* Add GHC 9.0.1 to the set of flake checks.
* Add hedgehog-1.0.5 to extra-deps (it fixes GHC 9).
2021-03-29 10:42:40 -04:00
Kirill Elagin
addd9ce503 ci: Add checks for different GHC versions
Repin haskell.nix and generate checks for multiple chosen versions of GHC.
2021-03-29 08:37:05 -04:00
Kirill Elagin
b60991303f Release v1.0.2.2 2021-02-17 22:24:51 -05:00
Kirill Elagin
ad7ffd99e2 Bump Stackage LTS 2021-02-17 22:13:31 -05:00
Kirill Elagin
c916ad47c3 Convert to a proper flake
* Get rid of Niv
* Repin haskell.nix
* Repin nixpkgs
2021-02-17 22:13:07 -05:00
Kirill Elagin
f26ba120c2
Merge pull request #11 from serokell/heitor.toledo/#9-fix-compilation-on-windows
[#9] Fix compilation of executable on Windows
2021-02-17 20:58:36 -05:00
Heitor Toledo Lassarote de Paula
19bcaa2419 [#9] Fix compilation of executable on Windows
Problem: Compilation of the executable on Windows fails with 'Module
`GHC.IO.Encoding.Iconv' does not export `localeEncodingName'`

Solution: Check if we are on Windows, and don't import such module or
use `localeEncodingName` if it's the case.
2021-02-15 11:29:35 -03:00
Kirill Elagin
57b6845f5e doc: Clarify a bit 2020-06-11 15:58:50 +03:00
Kirill Elagin
7b44ddcb01 doc: Make the blog link more visible 2020-06-11 15:56:10 +03:00
Kirill Elagin
d684f37997 stack.yaml: Bump th-env 2020-06-11 15:55:48 +03:00