Anton-Latukha
aecfd03ecd
dep: Core,Remote: relude >= 1.0
2022-02-21 14:31:01 +01:00
Anton Latukha
9a9ebb5434
core: test: NarFormat: m doc
2021-11-04 14:27:05 +02:00
hololeap
b0ee7fd6a2
Add GHC.Stats
import to NarFormat test
...
This is needed for the tests to compile on my system.
Without the import, `max_live_bytes` and `getRTSStats` are undefined.
2021-11-04 14:21:19 +02:00
Anton-Latukha
916624b373
Core: tests: Hash: spec_hash: refactor
2021-08-07 02:51:08 +03:00
Anton-Latukha
2bf02a92d8
Core: tests: Hash: spec_nixhash: refactor
2021-08-07 01:56:06 +03:00
Anton-Latukha
6318ff163b
Remote: (Right -> pure)
2021-08-06 19:52:52 +03:00
Anton-Latukha
5b1b51306a
Core: clean-up imports
2021-08-06 19:29:02 +03:00
Anton-Latukha
a93cba03c9
treewide: hlint refactor
2021-08-06 19:29:02 +03:00
Anton-Latukha
75c810423a
treewide: hlint refactor
2021-08-06 19:29:02 +03:00
Anton-Latukha
3fe7fce9e8
treewide: use lift
2021-08-06 19:29:02 +03:00
Anton-Latukha
f27d5c15be
treewide: use ask{,s}
2021-08-06 19:29:02 +03:00
Anton-Latukha
54a7c92791
treewide: use WriteMode
2021-08-06 19:29:02 +03:00
Anton-Latukha
d2970b9f01
treewide: use ReadMode
2021-08-06 19:29:02 +03:00
Anton-Latukha
8f932bd6ee
treewide: use decodeUtf8
2021-08-06 19:29:01 +03:00
Anton-Latukha
0789f253c8
treewide: use toString
2021-08-06 19:29:01 +03:00
Anton-Latukha
99da38fa83
treewide: use withFile
2021-08-06 19:29:01 +03:00
Anton-Latukha
5d22b9450a
treewide: use pass
2021-08-06 19:29:01 +03:00
Anton-Latukha
c00dedcd3a
treewide: use toText
2021-08-06 19:29:01 +03:00
Anton-Latukha
80f27bb836
Core: Derivation: refactor
2021-08-06 19:29:01 +03:00
Anton-Latukha
e350ee4f60
Core: tests: NarFormat: (data -> newtype) Nar
2021-08-06 19:29:01 +03:00
Anton-Latukha
c4183d22d2
treewide: (LANGUAGE -> language)
2021-08-06 19:29:01 +03:00
Anton-Latukha
8e3955f6a1
Core: cabal: declare default-extensions
2021-08-06 19:29:01 +03:00
Anton-Latukha
ef6343be35
Core: use relude as Prelude
2021-08-06 17:55:32 +03:00
Anton-Latukha
39b55ad645
Core: tests: treewide refactor
2021-08-06 17:43:23 +03:00
Anton-Latukha
b816f41170
treewide: clean-up language extensions
2021-08-06 17:43:23 +03:00
Anton-Latukha
3f5d9092df
{Code, Remote}: require base >=4.12 (GHC 8.6)
2021-08-06 17:43:22 +03:00
Anton-Latukha
98da3481db
Core: proclaim 0.5
2021-06-10 17:23:23 +03:00
Anton-Latukha
8c67482a67
Core: prepare ChangeLog for 0.5.0.0 release
2021-06-10 17:23:23 +03:00
Anton-Latukha
e4948a9fe1
Core: upd ChangeLog after migration to cryptonite
2021-06-10 15:24:29 +03:00
Anton-Latukha
97146b41cc
treewide: migrate crypto(hash-* -> nite)
...
Reference:
Main cause:
https://github.com/haskell-hvr/cryptohash-sha512/issues/7
The whole `cryptohash-*` package family is abandoned, there is no
signs of maintainer activity there, so it stopped following Haskell ecosystem &
`base` releases. Knowing the human history & situation around it - it would not
be reviwed, which gives experience to not hardcode on the (specifically when
emotional) dependency.
Experience I drawn from this story is to keep things simplier when possible &
have more flexible systems as a result code.
It was "a bit too much" for what hashing is, for the code to have 2 hashing type
systems (external & internal) & reinventment of `HashAlgorithm` type duplicate.
The whole code was really rigid with a lot of type applicating the data kinds,
those are dependent type features & should be used cautiously, since interface
became rigid to changes, so afterwards it is easier & effective to dismantle
and recreate the subsystem then to evolve it.
Previous hashing history:
https://github.com/haskell-nix/hnix-store/issues/156
https://github.com/haskell-nix/hnix-store/issues/142
https://github.com/haskell-nix/hnix-store/pull/93
https://github.com/haskell-nix/hnix-store/issues/92
https://github.com/haskell-nix/hnix-store/issues/90
https://github.com/haskell-nix/hnix-store/issues/83
https://github.com/haskell-nix/hnix-store/pull/64
https://github.com/haskell-nix/hnix-store/pull/38
https://github.com/haskell-nix/hnix-store/pull/32
https://github.com/haskell-nix/hnix-store/pull/31
https://github.com/haskell-nix/hnix-store/pull/28
https://github.com/haskell-nix/hnix-store/pull/27
https://github.com/haskell-nix/hnix-store/pull/25
https://github.com/haskell-nix/hnix-store/issues/18
https://github.com/haskell-nix/hnix-store/pull/14
2021-06-10 15:17:40 +03:00
Anton-Latukha
3ecbb2f5a5
Core: tests: NarFormat: m clean-up
2021-06-10 13:18:41 +03:00
Anton-Latukha
f395a0aba0
Core: Internal.Nar.Streamer: explicit export list
2021-06-10 13:18:41 +03:00
Anton-Latukha
8c7dc152d9
Core: Internal.Nar.Parser: explicit export list
2021-06-10 13:18:41 +03:00
Anton-Latukha
1200a4839f
Core: Internal.Truncation: explicit export list
2021-06-10 13:18:41 +03:00
Anton-Latukha
d196ba5448
Core: Internal.StorePath: explicit export list
2021-06-10 13:18:41 +03:00
Anton-Latukha
099d02dba3
Core: Internal.Signature: explicit export list
2021-06-10 13:18:41 +03:00
Anton-Latukha
a2798b034a
Core: Internal.Hash: explicit export list
2021-06-10 13:18:41 +03:00
Anton-Latukha
ef8a2c044c
Core: Internal.Base32: explicit export list
2021-06-10 13:18:41 +03:00
Anton-Latukha
d0b58e9e3d
Core: Internal.Base: explicit export list
2021-06-10 13:18:41 +03:00
Anton-Latukha
2af74986de
Core: Internal.Hash: take-out Truncated from HashAlgorythm & treewide change
...
M hnix-store-core/src/System/Nix/Hash.hs
M hnix-store-core/src/System/Nix/Internal/Hash.hs
M hnix-store-core/src/System/Nix/Internal/StorePath.hs
M hnix-store-core/src/System/Nix/ReadonlyStore.hs
M hnix-store-core/src/System/Nix/StorePath.hs
M hnix-store-core/tests/Arbitrary.hs
M hnix-store-core/tests/Hash.hs
2021-06-10 13:18:41 +03:00
Anton-Latukha
978aeb09ba
Core: Internal.Base: m import clean-up
2021-06-10 13:18:41 +03:00
Anton-Latukha
8ddca09609
Core: Internal: add module Truncation
2021-06-10 13:18:41 +03:00
Anton-Latukha
449ba89a90
Core: Internal: Hash: truncateDigest(->InNixWay)
...
Please, see the notes in the code.
2021-06-10 13:18:40 +03:00
Anton-Latukha
d8b1498957
Core: Internal: Hash: truncateDigest: refactor
2021-06-10 13:18:40 +03:00
Anton-Latukha
49699e9ce3
Core: Internal: mv Base dec -> Base, Hash.decode(Base->DigestWith)
2021-06-10 13:18:40 +03:00
Anton-Latukha
f5ba0fcfa4
Core: Internal: mv Base enc -> Base, Hash.encode(InBase->DigestWith)
2021-06-10 13:18:40 +03:00
Anton-Latukha
d0295a1613
Core: treewide: m clean-up
2021-06-10 13:18:40 +03:00
Anton-Latukha
bdeeede9ae
Core: Internal: Base: (-> Nix)Base32
...
To name it honestly. It is not a standard Base32 encoding.
NixBase32 needs specific treatment over the stack (now & in the future), so it
is better to distinquish it from default encoding.
2021-06-10 13:18:40 +03:00
Anton-Latukha
2ae2b49a0b
Core: Internal: Base32: decode: Left: name honestly
2021-06-10 13:18:40 +03:00
Anton-Latukha
0343740efb
Core: Internal: Base32: m refactor
2021-06-10 13:18:40 +03:00