Changelog for hnix-0.12.0.1
Changelog
(diff) Progress
(diff) 0.12.0 (2021-01-05)
-
Disclaimer: Current
derivationStrict
primOp implementation and so every evaluation of a derivation into a store path currently relies on thehnix-store-remote
, which for those operations relies on the runningnix-daemon
, and so operations use/produce effects into the/nix/store
. Be cautious - it is effectful. -
Introduction:
- New module
Nix.Effects.Derivation
. - Operations on derivations:
- old got principled implementations.
- also new operations got introduced.
- Implementation of the
derivationStrict
primOp.
- New module
-
Breaking:
- (link)
Nix.Effects
: classMonadStore
got principled implementation.addPath'
got principled intoaddToStore
.toFile_
got principled intoaddTextToStore'
.- For help & easy migration you may use
addPath
&toFile_
addTextToStore
standalone functions in the module.
- (link)
Nix.Effects.Basic
:defaultDerivationStrict
got reimplemented & moved intoNix.Effects.Derivation
. - (link)
Nix.Standard
: instance forMonadStore (Fix1T t m)
got principled accoding to classMonadStore
changes. - (link)
Nix.Fresh.Basic
: instance forMonadStore (StdIdT m)
got principled.
- (link)
-
Additional:
- (link) New module
Nix.Effects.Derivation
: HNix(0.12.0):Nix.Effects.Derivation documentation. - (link)
Nix.Convert
: PrincipledNVPath -> NixString
coercion.- In a form of principled
instance FromValue NixString m (NValue' t f m (NValue t f m))
.
- In a form of principled
- (link)
Nix.String
: Allow custom computations inside string contexts.- By providing
runWithStringContext{T,}'
methods into the API.
- By providing
- (link) Includded support for new
base16-bytestring
, which advertices 2x-4x speed increase of its operations. - (link)
Nix.Effects
:addPath
&toFile_
standalone functions got principled implementation through the internal use of the newMonadStore
type class implementation. - (link)
Nix.Effects
: addedaddTextToStore
,parseStoreResult
implementations. - (link)
Nix.Effects
: added type synonyms{RecursiveFlag, RepairFlag, StorePathName, FilePathFilter, StorePathSet}
. - (link)
Nix.Exec
: Fixed the rendering of internalFrames
.- Which is an internal mechanism of a project to passing around messages with their context, still to be used internally).
- (link)
HNix / Nix
: The library now also useshnix-store-remote
. - (link)
cabal.project
: project usescryptohash-sha512
override, thehnix-store-core
requires it fromhnix
and uses that override also. Detailed info. We promise to attend to this issue, probably by migrating tocryptonite
in the nearest releases.
- (link) New module
Future note: The HNix is a big project. During the initial development and currently the API for simplicity exposes allmost all functions, types, etc. Big open API means a big effort to create/maintain a quite noisy changelog and you parsing through it, and also creates a frequent requirements to mark releases as major and bother you due to some type changes in some parts that may not be used or applicable to be public API.
This year the most gracious API clean-up would happen, we would check and keep open what Hackage projects are using from the API, and the other parts would be open on the request by a way of rapid minor releases. That clean-up is also a work toward splitting the project into several packages some time in the future (split would be into something like Expressions, Evaluation, Executable, Extra), which migration also would be done most thoughful and graceful as possible, with as much easiness and automation provided for migration downstream as possible. If all goes as planned - all downstream would need to do is to get and run our script that would migrate our old map of module imports to new ones, and maybe manually add those newly formed packages into .cabal
description.
If it is possible, please, try to switch & use the higher-level API functions where it is applicable. Thank you.
(diff) 0.11.1 (2020-12-09)
- Additional:
- (link)
Nix.Builtins
:isString
fixed - It used to returnTrue
for values coercible to string like derivations and paths. It only accepts string values now. - (link)
Nix.Builtins
:substring
fixed - Negative lengths used to capture an empty string. Now they capture the whole rmeainder of the string. - (link)
Nix.Effects
:pathExists
fixed - Now also works with directories. - (link)
Nix.Parser
:->
is now properly right-associative (was non-associative). - (link)
Nix.Parser
: Nixassert
parser (nixAssert
function) now accepts top-level Nix format also (which means also accepts all kinds of statements), before that it accepted only regular Nix expressions. - (link)
Nix.Render
:renderLocation
now also shows/handles location of errors in raw strings.
- (link)
(diff) 0.11.0 (2020-11-02)
-
Breaking:
- (link) Deleted incorrect
instance Generic1 NKeyName
frommodule Nix.Expr.Types
. - (link) Parentheses now are properly included in the location annotation for Nix expressions, change of
nixParens
inmodule Nix.Parser
essentially results in the change of all modulenix*
function results, essentially making results of the whole module more proper.
- (link) Deleted incorrect
-
Additional:
- (link) Fix QQ Text lifting error: work around of GHC#12596 "can't find interface-file declaration".
- (link) Fix comments inclusion into location annotations, by using pre-whitespace position for source end locations.
(diff) 0.10.1 (2020-09-13)
- Additional:
- (link)
{Binding, NExpr, NExprF, NKeyName}
gainedOrd1
instances.- These instances were required by downstream projects to be able to use newer HNix.
- (link) CLI gained
--long-version
option for gathering a detailed debug information.- Currently, reports Git commit and its date.
- (link) Currently does not work in case of use of the
nix-build
, in which case simply returnsUNKNOWN
placeholder.
- (link)
(diff) 0.10.0 (2020-09-12)
-
Breaking:
- (link) Removed
NExpr
{FromJSON, ToJSON}
instances.- This also removed the JSON output feature for unevaluated expression trees.
- (link) Removed
-
Additional:
(diff) 0.9.1 (2020-07-13)
- Additional:
- REPL:
- Better tab completion.
- Accepting multi-line input.
- Support for passing evaluated expression result of
hnix --eval -E
. to REPL as aninput
variable. - Support for loading
.hnixrc
from the current directory.
- Reporting of
builtins.nixVersion
bumped from 2.0 to 2.3. - Dependencies:
- Freed from:
{interpolate, contravariant, semigroups, generic-random, tasty-quickcheck}
. - Requires last major
repline
(0.4
).
- Freed from:
- REPL:
(diff) 0.9.0 (2020-06-15)
-
Breaking:
- Removed instances due to migration to
haskeline 0.8
:instance MonadException m => MonadException(StateT(HashMap FilePath NExprLoc) m)
.instance MonadException m => MonadException(Fix1T StandardTF m)
.
- Dependencies:
- Requires last major
haskeline
(0.8
).
- Requires last major
- Removed instances due to migration to
-
Additional:
- Library: Official support for
GHC 8.4 - 8.10
. - Executable complies only under
GHC 8.10
.
- Library: Official support for
-
Changelog started. Previous release was
0.8.0
.
HNix uses PVP Versioning.