Commit Graph

1677 Commits

Author SHA1 Message Date
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 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 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
Anton-Latukha c67fa20aed Repl: LANGUAGE: rm LambdaCase 2019-08-04 09:14:41 -07:00
Anton-Latukha 6f06152976 Value: Monad: LANGUAGE: rm FunctionalDependencies 2019-08-04 09:14:41 -07:00
Anton-Latukha 5b97e2d27a .travis.yml: increase depth to have Travis git caching between jobs
Setting of 1 would be problematic when PRs would start to pour.
2019-07-26 15:21:23 -07:00
Silvan Mosberger 82b2d8af7f Use NSet for both recursive and non-recursive sets
Simplifies the AST
2019-07-25 14:10:44 -07:00
Linus Heckemann 3db38d0663 Warn users who forget to fetch the submodules 2019-06-25 20:24:32 +02:00
Anton-Latukha 4f7013bc1f Effects: Basic: upd simplify defaultImportPath ErrorCall 2019-06-25 20:24:12 +02:00
Anton-Latukha dbe17f0065 Effects: Basic: LANGUAGE: rm unused ConstraintKinds 2019-06-25 20:24:12 +02:00
Anton-Latukha dfe144a0e0 Effects: Basic: LANGUAGE: rm unused FlexibleInstances 2019-06-25 20:24:12 +02:00
Anton-Latukha 0505d160a7 Effects: Basic: LANGUAGE: rm unused MultiParamTypeClasses 2019-06-25 20:24:12 +02:00
Anton-Latukha 97dd1dc376 Effects: Basic: LANGUAGE: rm unused MultiWayIf 2019-06-25 20:24:12 +02:00
Anton-Latukha e6718a0afd Effects: Basic: LANGUAGE: rm unused PartialTypeSignatures 2019-06-25 20:24:12 +02:00
Anton-Latukha 87714a9849 Effects: Basic: LANGUAGE: rm unused RankNTypes 2019-06-25 20:24:12 +02:00
Anton-Latukha 5220e67b84 Effects: Basic: LANGUAGE: rm unused TypeFamilies 2019-06-25 20:24:12 +02:00
Anton-Latukha ed21133a4f Effects: Basic: LANGUAGE: rm unused UndecidableInstances 2019-06-25 20:24:12 +02:00
Anton-Latukha 9de5830232 Effects: Basic: LANGUAGE: rm unused AllowAmbigousTypes 2019-06-25 20:24:12 +02:00
Anton-Latukha fadc645551 Effects: Basic: upd η-reduce findPathM 2019-06-25 20:24:12 +02:00
Anton-Latukha cc1e0d208a Effects: Basic: LANGUAGE: rm unused TypeSynonimInstances 2019-06-25 20:24:12 +02:00
Anton-Latukha bf226596d3 Effects: Basic: LANGUAGE: rm unused GeneralizedNewtypeDeriving 2019-06-25 20:24:12 +02:00
Anton-Latukha 1197ffdc8a Effects: Basic: LANGUAGE: rm unused DeriveFunctor 2019-06-25 20:24:12 +02:00
Anton-Latukha 2824bd8d0a Effects: Basic: defaultDerivationStrict: upd use infix `demand` 2019-06-25 20:24:12 +02:00
Linus Heckemann a57fc62d84 exec: fix some list and null behaviour
null is not equal to the empty list, and cannot be concatenated to
either end of a list.
2019-06-25 20:23:50 +02:00
Linus Heckemann 600fdb93e8 types: fix type of concat binop
Nix's ++ does not in fact allow concatting null with a list:

nix-repl> [] ++ null
error: value is null while a list was expected, at (string):1:1

nix-repl> null ++ []
error: value is null while a list was expected, at (string):1:1
2019-06-25 20:23:50 +02:00
Anton-Latukha 888a21afe3 README: Getting Started: upd use new-* cabal options for Nix
Otherwise:
```
cabal test
Warning: The test command is a part of the legacy v1 style of cabal usage.

Please switch to using either the new project style and the new-test command
or the legacy v1-test alias as new-style projects will become the default in
the next version of cabal-install. Please file a bug if you cannot replicate a
working v1- use case with the new-style commands.

For more information, see: https://wiki.haskell.org/Cabal/NewBuild

/nix/store/iajira937isi5mjnrdcnvazd6p63b31d-ghc-8.6.3-with-packages/bin/ghc-pkg: createProcess: runInteractiveProcess: exec: does not exist (No such file or directory)
```

So at the very least `cabal new-test` seems to be required.
2019-05-28 15:36:31 -07:00
Silvan Mosberger 90f6a61a84 Fix nixUri source span
Previously it would include the spacing after the URI in the source
span.
2019-05-13 07:34:54 -07:00
John Wiegley 646cc4adc7
Update nixpkgs, use GHC 8.6.4 2019-04-30 17:29:36 -07:00