Commit graph

1702 commits

Author SHA1 Message Date
Richard Marko 9c93e89331 tests: port loop, remove hardcoded paths 2020-05-15 17:49:57 -07:00
Richard Marko f2999a33bb simplify evalExpression 2020-05-15 17:49:36 -07:00
Silvan Mosberger f682907c97 Make URI's be separate from strings 2020-05-15 17:49:11 -07:00
Simon Jakobi 8341c1b4ac Allow hnix-store-core 0.2 2020-05-15 17:48:39 -07:00
Anton-Latukha 65ece58d2d Allow pretty-show 1.11
M  hnix.cabal

[The previous release of the package](https://hackage.haskell.org/package/pretty-show-1.9.5) (v 1.9.5,  date `Dec 27 16:54:42 UTC 2018`, [tree](1b484f4b16)).
[Curren release](https://hackage.haskell.org/package/pretty-show-1.10) (v1.10, date `Thu Jan 30 19:08:20 UTC 2020`, [tree](0ff7959238)).

Diff is: 1b484f4b16..0ff7959238

Source changes prove [changelog](https://hackage.haskell.org/package/pretty-show-1.10/changelog) statement:
```text
Changes in 1.10
  * Add support for quasi-quotes, as the preferred way of dealing
    with non-properly showable things.
```
is true.

Tests are passing.
2020-05-15 17:33:04 -07:00
John Wiegley 9f1519d9ca
Bump version to 0.7.1 2020-03-03 13:14:20 -08:00
Simon Jakobi 1b6ab11a53 Allow prettyprinter 1.6 2020-03-03 13:14:02 -08:00
John Wiegley 24049aa7b1
Bump version to 0.7.0 2020-03-03 13:01:36 -08:00
John Wiegley 583c048e15
Update version to 0.7.0 2020-03-02 14:56:15 -08:00
Anton-Latukha 0305b5287c rm .dockerignore
Since Dockerfile was removed.
.dockerignore file seems without agenda.
2020-01-30 15:49:49 -08:00
Anton-Latukha 96d3f8b932 README: rm Docker section
Dockerfile was removed recently.
Syncing docs to the state.
2020-01-30 15:49:49 -08:00
John Wiegley bcdaaafe16
Update rev 2020-01-29 17:32:56 -08:00
John Wiegley 9b2ed1b244
Remove the Dockerfile from the source tree 2020-01-13 18:15:58 -08:00
John Wiegley 9d63f952e9
Merge remote-tracking branch 'sjakobi/ghc-gte-8.4' 2020-01-13 18:13:37 -08:00
John Wiegley 71804374ce
Merge remote-tracking branch 'quasi/monadfail' 2020-01-13 17:56:33 -08:00
John Wiegley a8c084aaab Update Travis to build using 8.6.5 2020-01-13 17:55:16 -08:00
John Wiegley 0ca6613d4b Fixes for building with GHC 8.6.5 under Nix 2020-01-13 17:55:16 -08:00
John Wiegley 0478ab6ba6 Update hnix to build with ghc865; however, hnix-store does not build 2020-01-13 17:55:16 -08:00
Simon Jakobi 6c9c7c310c Remove unused dependency on regex-tdfa-text 2019-12-05 16:25:55 +01:00
Guillaume Maudoux 975d6dea93 Refactor execBinaryOp to demand values where needed.
This spliste execBinaryOp in two parts where the second conatains all
the logic that relies on the assumption that values are already in
"demanded".
2019-11-27 17:16:43 -08:00
Guillaume Maudoux 45c72cd20e fixup: undo spurious space change 2019-11-26 14:32:29 -07:00
Guillaume Maudoux 4ded48a789 Add proper default 'nix' prefix to search paths
The search path of Nix contains by default the "nix" prefix that points
to $datadir/nix/corepkgs, where $datadir defaults to $prefix/lib at
installation time, but can be overriden by NIX_DATA_DIR.

We implemented it using `Paths.hnix.getDataDir` and `NIX_DATA_DIR` to
follow Nix behaviour as closely as possible.

A small discrepancy is that we do the lookup on each invocation, where
Nix caches the searchPath at context creation.
2019-11-26 14:32:29 -07:00
Guillaume Maudoux 21c3c9c938 Fix compound attributes in let bindings
Fix an issue where compound attributes would discard previous bindings
in a let statement.

`let a=1; b.b=2; c=3; in a` would fail, where
`let a=1; b.b=2; c=3; in c` would work as expected.
2019-11-25 15:22:39 -07:00
Simon Jakobi 8ce466ee80 Allow megaparsec-8 2019-11-09 20:23:42 -08:00
Simon Jakobi e22882489c Allow prettyprinter-1.5 2019-11-09 20:23:25 -08:00
Simon Jakobi 57d63aa381 Allow parser-combinators-1.1.*
This fixes `nix-build`.
2019-10-22 10:02:59 -07:00
Simon Jakobi 7603e3634c Simplify hnix.cabal some more 2019-10-22 00:27:44 +02:00
Simon Jakobi 5c8c1cc16f We unconditionally depend on deepseq >= 1.4.3 now 2019-10-22 00:18:12 +02:00
Simon Jakobi ff39add9af Remove instance for old binary versions 2019-10-22 00:05:52 +02:00
Simon Jakobi 5f4cef9922 We unconditionally have hashable >= 1.2.5 now 2019-10-22 00:03:52 +02:00
Simon Jakobi 3d6f34f280 Simplify conditional build-depends 2019-10-22 00:03:39 +02:00
Simon Jakobi 4cd94bf687 Remove some redundant GHC version checks 2019-10-21 23:52:22 +02:00
Simon Jakobi 8ed7d765dd Require base >= 4.11
There were multiple build failures with GHC-8.2 due
to (<>) and Semigroup not being in scope.
2019-10-21 23:46:35 +02:00
Simon Jakobi 2df4986aa6 Bump bounds for regex-tdfa, semialign and semialign-indexed 2019-10-21 14:44:47 -07:00
Simon Jakobi e2d2543951 Allow prettyprinter-1.4.0 2019-10-21 08:52:05 -07:00
quasicomputational 37c2bb25da Adapt to MonadFail changes in GHC 8.8.
Note that this is an enforced public API change.

I went with changing the `MonadFile` typeclass rather than threading
through a `MonadFail` at every use-site, but that would be possible as
well if it makes more semantic sense - however, since `MonadFile`
already seems to require an IO-ish implementation, adding that
superclass doesn't seem like an imposition.
2019-10-02 08:04:17 +01:00
quasicomputational 717492a7ec Bump nixpkgs pin and use fetchGit to get it. 2019-09-06 13:19:14 -07:00
quasicomputational 91262e7602 Allow most recent versions of dependencies.
The only actual breaking change affecting `hnix` is `these` splitting
into three packages and renaming some things. Otherwise, as the
package should work fine with either the newer or older versions, I
have left the previous bounds in place and added the new ones
disjunctively.

This will help somewhat with #494.
2019-09-06 13:19:14 -07:00
Anton-Latukha c03a40acea upd texts of more messages
Heterogeneous: consisting of dissimilar elements.

Heterogenous:
  1. not originating within the body;
  (ex: "You are NOT of the body!" by Dr. Leonard "Bones" McCoy)
  2. of foreign origin;
  3. heterogeneous.
2019-08-04 15:00:57 -07:00
Anton-Latukha e3f5eafd7b upd texts of messages 2019-08-04 12:52:22 -07:00
Anton-Latukha 4758c014e5 Thunk: Basic: LANGUAGE: rm {LambdaCase,TypeApplications} 2019-08-04 09:14:41 -07:00
Anton-Latukha 63b4496621 Standard: LANGUAGE: rm {LambdaCase,TupleSections,ViewPatterns} 2019-08-04 09:14:41 -07:00
Anton-Latukha dda464a8ec Render: LANGUAGE: rm TypeApplications 2019-08-04 09:14:41 -07:00
Anton-Latukha 150c1086a3 Pretty: LANGUAGE: rm TupleSectioning 2019-08-04 09:14:41 -07:00
Anton-Latukha e50a2272b3 Lint: LANGUAGE: rm StandaloneDeriving 2019-08-04 09:14:41 -07:00
Anton-Latukha 9baacd3b2d Fresh: LANGUAGE: rm {DefaultSignatures,FunctionalDependencies} 2019-08-04 09:14:41 -07:00
Anton-Latukha 34af384870 Var: LANGUAGE: rm Derive{Foldable,Functor,Traversable} 2019-08-04 09:14:41 -07:00
Anton-Latukha f258d00796 Exec: LANGUAGE: rm {DeriveFunctor,GeneralizedNewtypeDeriving,ViewPatterns} 2019-08-04 09:14:41 -07:00
Anton-Latukha 61dfbca2e3 Eval: LANGUAGE: rm FunctionalDependencies 2019-08-04 09:14:41 -07:00
Anton-Latukha 63f3f9f5cd Convert: LANGUAGE: rm DefaultSignatures 2019-08-04 09:14:41 -07:00