Patchwork ghc 8

login
register
mail settings
Submitter ng0
Date Sept. 26, 2016, 8:54 p.m.
Message ID <87r386e60y.fsf@we.make.ritual.n0.is>
Download mbox | patch
Permalink /patch/16025/
State New
Headers show

Comments

ng0 - Sept. 26, 2016, 8:54 p.m.
ng0 <ng0@we.make.ritual.n0.is> writes:

> Ludovic Courtès <ludo@gnu.org> writes:
>
>> ng0 <ng0@we.make.ritual.n0.is> skribis:
>>
>>> Ludovic Courtès <ludo@gnu.org> writes:
>>>
>>>> ng0 <ng0@we.make.ritual.n0.is> skribis:
>>>>
>>>>> should we package ghc 8 in core-updates? It was released in May:
>>>>> https://ghc.haskell.org/trac/ghc/blog/ghc-8.0.1-released
>>>>
>>>> Probably a good idea.  :-)
>>>>
>>>> This can be done in ‘master’, or, if we change to default GHC, to a
>>>> dedicated ‘ghc-update’ branch.
>>>>
>>>> Ludo’.
>>>
>>> Should this replace current ghc? I don't know how much of our current
>>> (gnu packages haskell) would break.
>>
>> No idea.  I suppose we take this route:
>>
>>   1. First you test a sample of ghc-* packages and build them to see if
>>      there’s obvious breakage.
>>
>>   2. If not, we commit the GHC upgrade in a branch and let Hydra build
>>      the branch.
>>
>>   3. We fix package breaks that we notice on the branch.
>>
>>   4. Merge the branch.
>>
>> How does that sound?
>>
>> Ludo’.
>
> Sounds good to me.

Dropping this as I need to focus on my bigger projects.
I realize this is better for our in-house haskell experts to pick up and
solve. Feel free to apply and use. If this no longer applies to master
(this is a branch which does not yet include the 1000+ new lines to
haskell.scm), I can send a rebased copy of the patches.

Patch

From 69e8e3ddb131f2919f7a5c3420ac724d5eb5ec6b Mon Sep 17 00:00:00 2001
From: ng0 <ng0@we.make.ritual.n0.is>
Date: Sun, 11 Sep 2016 17:29:16 +0000
Subject: [PATCH 4/4] gnu: ghc: Partial fix to terminfo.

This will be reworked when commited upstream.
---
 gnu/packages/haskell.scm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm
index d629d43..fdcb4cb 100644
--- a/gnu/packages/haskell.scm
+++ b/gnu/packages/haskell.scm
@@ -113,6 +113,7 @@ 
              "0lc1vjivkxn01aw3jg2gd7fmqb5pj7a5j987c7pn5r7caqv1cmxw"))))))
     (native-inputs
      `(("perl" ,perl)
+       ("lua" ,lua)
        ("python" ,python-2)                ; for tests (fails with python-3)
        ("ghostscript" ,ghostscript)        ; for tests
        ("patchelf" ,patchelf)
@@ -213,7 +214,7 @@ 
                                            ,(glibc-dynamic-linker)))
                      (libtinfo-dir
                       (string-append ghc-bootstrap-prefix
-                                     "/lib/ghc-8.0.1/terminfo-0.4.0.0")))
+                                     "/lib/ghc-8.0.1/terminfo-0.4.0.2")))
                 (with-directory-excursion
                     (string-append ghc-bootstrap-path "/ghc-8.0.1")
                   (setenv "CONFIG_SHELL" (which "bash"))
-- 
2.10.0