Compiling libraries

2021-04-29 Thread Simon Peyton Jones via ghc-devs
Ben and other friends
What is the approved way to build libraries with (and for) a compiler that I've 
just built?
I tried this:

bash$ cabal v2-install 
--with-ghc=/home/simonpj/code/ghc-9.2-branch/inplace/bin/ghc-stage2 streamly 
--allow-newer
but it failed with

Data/Primitive/Types.hs:273:844: error:

* Couldn't match expected type 'Word#' with actual type 'Word8#'

* In the fourth argument of 'shimmedSetWord8Array#', namely 'x#'
(This was for a compiler built from the ghc-9.2 branch.)
I'd like to be able to do the same for HEAD.
I need to do this to help with the numerous tickets asking about library 
regressions.  For example, I want to be able repoduce @harendra's 
example, but I 
can't because I can't build streamly.
Thanks!
Simon

___
ghc-devs mailing list
ghc-devs@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs


Re: Compiling libraries

2021-04-29 Thread Carter Schonwald
There’s hackage head, which has some docs on the gitlab instance. Though
I’m not up to date on how to use it.

On Thu, Apr 29, 2021 at 4:24 AM Simon Peyton Jones via ghc-devs <
ghc-devs@haskell.org> wrote:

> Ben and other friends
>
> What is the approved way to build libraries with (and for) a compiler that
> I’ve just built?
>
> I tried this:
>
> bash$ cabal v2-install
> --with-ghc=/home/simonpj/code/ghc-9.2-branch/inplace/bin/ghc-stage2
> streamly --allow-newer
>
> but it failed with
>
> Data/Primitive/Types.hs:273:844: error:
>
> • Couldn't match expected type ‘Word#’ with actual type ‘Word8#’
>
> • In the fourth argument of ‘shimmedSetWord8Array#’, namely ‘x#’
>
> (This was for a compiler built from the ghc-9.2 branch.)
>
> I’d like to be able to do the same for HEAD.
>
> I need to do this to help with the numerous tickets asking about library
> regressions.  For example, I want to be able repoduce @harendra’s example
> , but I
> can’t because I can’t build streamly.
>
> Thanks!
>
> Simon
>
>
> ___
> ghc-devs mailing list
> ghc-devs@haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
>
___
ghc-devs mailing list
ghc-devs@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs


Re: Compiling libraries

2021-04-29 Thread Artem Pelenitsyn
Yes, in particular, this:
https://gitlab.haskell.org/ghc/head.hackage

Readme there has some documentation…

On Thu, Apr 29, 2021 at 3:19 PM Carter Schonwald 
wrote:

> There’s hackage head, which has some docs on the gitlab instance. Though
> I’m not up to date on how to use it.
>
> On Thu, Apr 29, 2021 at 4:24 AM Simon Peyton Jones via ghc-devs <
> ghc-devs@haskell.org> wrote:
>
>> Ben and other friends
>>
>> What is the approved way to build libraries with (and for) a compiler
>> that I’ve just built?
>>
>> I tried this:
>>
>> bash$ cabal v2-install
>> --with-ghc=/home/simonpj/code/ghc-9.2-branch/inplace/bin/ghc-stage2
>> streamly --allow-newer
>>
>> but it failed with
>>
>> Data/Primitive/Types.hs:273:844: error:
>>
>> • Couldn't match expected type ‘Word#’ with actual type ‘Word8#’
>>
>> • In the fourth argument of ‘shimmedSetWord8Array#’, namely ‘x#’
>>
>> (This was for a compiler built from the ghc-9.2 branch.)
>>
>> I’d like to be able to do the same for HEAD.
>>
>> I need to do this to help with the numerous tickets asking about library
>> regressions.  For example, I want to be able repoduce @harendra’s example
>> , but I
>> can’t because I can’t build streamly.
>>
>> Thanks!
>>
>> Simon
>>
>>
>> ___
>> ghc-devs mailing list
>> ghc-devs@haskell.org
>> http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
>>
> ___
> ghc-devs mailing list
> ghc-devs@haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
>
___
ghc-devs mailing list
ghc-devs@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs


Re: Compiling libraries

2021-04-29 Thread Carter Schonwald
Thanks for pulling that up! I was doing errands away from my desktop all
day

On Thu, Apr 29, 2021 at 5:43 PM Artem Pelenitsyn 
wrote:

> Yes, in particular, this:
> https://gitlab.haskell.org/ghc/head.hackage
>
> Readme there has some documentation…
>
> On Thu, Apr 29, 2021 at 3:19 PM Carter Schonwald <
> carter.schonw...@gmail.com> wrote:
>
>> There’s hackage head, which has some docs on the gitlab instance. Though
>> I’m not up to date on how to use it.
>>
>> On Thu, Apr 29, 2021 at 4:24 AM Simon Peyton Jones via ghc-devs <
>> ghc-devs@haskell.org> wrote:
>>
>>> Ben and other friends
>>>
>>> What is the approved way to build libraries with (and for) a compiler
>>> that I’ve just built?
>>>
>>> I tried this:
>>>
>>> bash$ cabal v2-install
>>> --with-ghc=/home/simonpj/code/ghc-9.2-branch/inplace/bin/ghc-stage2
>>> streamly --allow-newer
>>>
>>> but it failed with
>>>
>>> Data/Primitive/Types.hs:273:844: error:
>>>
>>> • Couldn't match expected type ‘Word#’ with actual type ‘Word8#’
>>>
>>> • In the fourth argument of ‘shimmedSetWord8Array#’, namely ‘x#’
>>>
>>> (This was for a compiler built from the ghc-9.2 branch.)
>>>
>>> I’d like to be able to do the same for HEAD.
>>>
>>> I need to do this to help with the numerous tickets asking about library
>>> regressions.  For example, I want to be able repoduce @harendra’s
>>> example ,
>>> but I can’t because I can’t build streamly.
>>>
>>> Thanks!
>>>
>>> Simon
>>>
>>>
>>> ___
>>> ghc-devs mailing list
>>> ghc-devs@haskell.org
>>> http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
>>>
>> ___
>> ghc-devs mailing list
>> ghc-devs@haskell.org
>> http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
>>
>
___
ghc-devs mailing list
ghc-devs@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs


Re: Compiling libraries

2021-04-29 Thread Ben Gamari
Simon Peyton Jones via ghc-devs  writes:

> Ben and other friends
> What is the approved way to build libraries with (and for) a compiler that 
> I've just built?
> I tried this:
>
> bash$ cabal v2-install 
> --with-ghc=/home/simonpj/code/ghc-9.2-branch/inplace/bin/ghc-stage2 streamly 
> --allow-newer
> but it failed with
>
> Data/Primitive/Types.hs:273:844: error:
>
> * Couldn't match expected type 'Word#' with actual type 'Word8#'
>
> * In the fourth argument of 'shimmedSetWord8Array#', namely 'x#'

As noted by others, we maintain head.hackage for precisely this reason.
It's not perfect, but I use it regularly to build Hackage packages with
pre-releases.

I have a draft blog post (which sadly has run into technical challenges
which have prevented publishing) which describes usage [1].

Cheers,

- Ben


[1] https://gitlab.haskell.org/ghc/homepage/-/merge_requests/29


signature.asc
Description: PGP signature
___
ghc-devs mailing list
ghc-devs@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs