1506 Commits

Author SHA1 Message Date
Vaibhav Sagar
9be6bac457 release.nix: use cleanSourceFilter 2017-10-12 13:42:24 +08:00
Vaibhav Sagar
d83e68177a Bump resolvers to lts-9.8 2017-10-12 12:18:04 +08:00
Vaibhav Sagar
6e42515a33 Rename pkgs argument to nixpkgs 2017-10-12 12:16:53 +08:00
Vaibhav Sagar
9bb794850e Merge pull request #757 from zainab-ali/execute-protocol
Make silent and store_hitsory optional params
2017-10-09 09:28:40 +08:00
zainab-ali
cc570a22c2 Make silent and store_hitsory optional params 2017-10-08 17:34:28 +01:00
Vaibhav Sagar
9fe30c0c7a Clean up -dynamic-too patching for Nix 2017-10-08 00:17:07 +08:00
Vaibhav Sagar
2907c07901 release.nix: remove unused 'profile' variable 2017-10-03 23:37:00 +08:00
Vaibhav Sagar
8d022fa441 Put makeWrapper in buildInputs
As per https://github.com/NixOS/nixpkgs/issues/29987
2017-10-02 00:47:42 +08:00
Vaibhav Sagar
c969b69383 Merge pull request #755 from gibiansky/nix-improvements
Nix improvements
2017-10-02 00:12:45 +08:00
Vaibhav Sagar
0d81c1d66c Filter out irrelevant files 2017-10-02 00:02:16 +08:00
Vaibhav Sagar
733c6d7c42 pkgs.makeWrapper is stricter in 17.09 2017-10-02 00:01:37 +08:00
Vaibhav Sagar
8447d3aabc Set -dynamic-too for Nix 2017-10-02 00:01:07 +08:00
Vaibhav Sagar
b33dbb8b84 Bump resolvers to lts-9.6 2017-09-25 16:46:50 +08:00
Vaibhav Sagar
dc34884f97 Make rtsopts configurable through release.nix 2017-09-24 17:31:51 +08:00
Sumit Sahrawat
a89c671870 Merge pull request #714 from leftaroundabout/master
Enable RTS options
2017-09-23 22:47:21 +05:30
Justus Sagemüller
52fbd3b187 Choose some default runtime options.
These may be controversial. They are certainly not good for everybody,
but in my opinion better than the GHC default (unlimited memory,
single processor), especially for beginners:

- In Haskell, it's unfortunately somewhat easy to allocate infinite
  amounts of memory. In the default setting, this can grind the entire
  system virtually to a halt by driving everything into swap. This
  is a huge frustration. (Yeah, Matlab likes to do this too, but that
  should be no benchmark...)
  With a memory cap, this will simply crash the program. Especially
  in Jupyter, that's not a big deal since the kernel can easily be
  restarted without losing any work.
- ̶6̶4̶0̶k 3 GiB should be enough for most beginner-relevant
  IHaskell applications, but should fit in most computers' RAM or
  at least reach the limit quickly after entering swap space.
- I see no reason to restrict the runtime to a single processor.
  Almost all machines today have multiple cores, and we're linking
  to the `-threaded` runtime anyway. For some applications it's
  basically necessary to use more than one thread for properly
  responsive operation, including my
  [dynamic-plot](http://hackage.haskell.org/package/dynamic-plot).
- Two processors should be modest enough to not substantially
  slow down any modern system.

Power users can of course always disable the memory cap and choose
more processors, through e.g.

    ihaskell install --use-rtsopts="-N12"
2017-09-23 13:54:06 +02:00
Justus Sagemüller
4245ef5191 Include RTS flags in kernelspec when installing. 2017-09-23 13:54:06 +02:00
Justus Sagemüller
8dcb905043 Enable +RTS options on the ihaskell executable.
This allows selecting e.g. a number of processors for multithreading other than 1,
or to impose a memory cap.
2017-09-23 13:54:06 +02:00
Vaibhav Sagar
76ce3b3f2d Bump resolvers to lts-9.5 2017-09-18 20:28:11 +07:00
Vaibhav Sagar
d35628d10a Bump resolvers to lts-9.4 2017-09-11 22:01:55 +07:00
Vaibhav Sagar
16445a911f Add note about getting GHC 7.10 support 2017-09-06 22:04:26 +07:00
Vaibhav Sagar
deeed9581b Merge pull request #748 from leftaroundabout/deprecation/unsupported-old-versions
Properly un-support GHC-7 (and other old stuff)
2017-09-06 16:52:59 +07:00
Justus Sagemüller
da52ee499e Reflect lack of support for GHC<8 in the dependencies.
As per #716, GHC-7 support has at the moment no priority. Use the GHC7 tag
for the last version that retains the original GHC-7.10 support.

https://github.com/gibiansky/IHaskell/releases/tag/GHC7

(However, it is still quite feasible to support GHC-7.10 in master, see
#747.)
2017-09-06 11:46:00 +02:00
Justus Sagemüller
096b1b6bce Adjust dependency lower boundary.
In `haskell-src-exts-1.17`, `Module` was not parameterised yet, so trying
to compile with that version gives

src/IHaskell/Eval/Lint.hs:36:19:
    ‘SrcExts.Module’ is applied to too many type arguments
    In the type ‘SrcExts.Module SrcSpanInfo’
    In the type declaration for ‘ExtsModule’
2017-09-05 18:20:32 +02:00
Vaibhav Sagar
95735f19e4 Enable dynamic loading with Nix 2017-09-05 07:48:09 +07:00
Vaibhav Sagar
c2e9e1382a Bump resolvers to lts-9.3 2017-09-05 07:41:15 +07:00
Vaibhav Sagar
3397825510 Update jupyter packages 2017-09-04 21:40:10 +08:00
Vaibhav Sagar
59adc28654 Change ghc-parser build-type to Simple 2017-09-04 00:13:45 +08:00
Vaibhav Sagar
ee8b8cc6ba Remove build-parser.sh 2017-09-02 11:36:14 +08:00
Vaibhav Sagar
bd09a30d65 Use defaultMain 2017-09-02 11:36:14 +08:00
Vaibhav Sagar
2b36577c29 Don't build parsers for 7.6 and 7.8
These parsers are unused and generating them leads to changes in the
source of ghc-parser, which causes more rebuilds than necessary.
2017-09-02 11:36:14 +08:00
Vaibhav Sagar
1fd9f03c85 Bump resolver to lts-9.2 2017-09-02 10:08:26 +08:00
Vaibhav Sagar
6e224c04c6 Fix Travis build 2017-09-02 09:43:48 +08:00
Vaibhav Sagar
82208921c7 Remove flag in release.nix 2017-08-29 13:52:12 +08:00
Justus Adam
e29f1977b8 Applied suggested minor changes 2017-08-26 15:11:07 +08:00
Justus Adam
2a7575ad85 Changed the macOS build instructions 2017-08-26 15:11:07 +08:00
Andrew Gibiansky
3136676bbd Bump version in cabal file for upload 2017-08-18 23:49:38 -07:00
Vaibhav Sagar
378b245524 Default binPkgDb to False 2017-08-18 23:49:01 -07:00
Andrew Gibiansky
5ba44347ae minor fixes to upload ipython-kernel and ghc-parser 2017-08-18 20:39:53 -07:00
Andrew Gibiansky
be4c870d99 Bump version in cabal file for upload 2017-08-18 20:03:27 -07:00
Andrew Gibiansky
2fcf6f96b5 Bump version in cabal file for upload 2017-08-18 20:00:09 -07:00
Vaibhav Sagar
2295ccdbee Tighten spacing 2017-08-18 21:25:51 +08:00
Vaibhav Sagar
e98945ff16 Fix ipython-kernel derivation name 2017-08-18 21:24:30 +08:00
Vaibhav Sagar
014bdd36dd Bump resolver to lts-9.1 2017-08-18 15:08:46 +08:00
Vaibhav Sagar
94dc8a5955 Make pinning nixpkgs more customisable 2017-08-16 14:53:44 +08:00
Vaibhav Sagar
f34c3e2589 Allow pinning of nixpkgs 2017-08-13 02:49:52 +08:00
Vaibhav Sagar
f39b812fdc Remove Hspec warning
GHC Bug #8639 was fixed four years ago.
2017-07-27 23:55:44 +08:00
Vaibhav Sagar
95e1830e23 Change InputMessage to ExecuteInputMessage
This stops nbconvert from complaining.
2017-07-27 21:48:43 +08:00
Vaibhav Sagar
5d5f2ec7c6 Switch to Python 3 2017-07-27 21:48:43 +08:00
Vaibhav Sagar
99fe7c8c58 Remove 'stack exec' from kernel installation
This leads to the wrong binary being used as per #733.
2017-07-27 21:17:31 +08:00