<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/haskell.git, branch wip/T20083</title>
<subtitle>gitlab.haskell.org: ghc/ghc.git
</subtitle>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/haskell.git/'/>
<entry>
<title>Disable -fdefer-type-errors for linear types (#20083)</title>
<updated>2021-08-03T12:28:55+00:00</updated>
<author>
<name>Krzysztof Gogolewski</name>
<email>krzysztof.gogolewski@tweag.io</email>
</author>
<published>2021-07-27T14:52:52+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/haskell.git/commit/?id=85740eff6136e18835c1de1ef7e38c044037877d'/>
<id>85740eff6136e18835c1de1ef7e38c044037877d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>template-haskell: Add support for default declarations</title>
<updated>2021-07-21T06:47:25+00:00</updated>
<author>
<name>Mario Blažević</name>
<email>blamario@protonmail.com</email>
</author>
<published>2021-03-07T17:01:56+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/haskell.git/commit/?id=10124b16538091806953d732e24ca485a0664895'/>
<id>10124b16538091806953d732e24ca485a0664895</id>
<content type='text'>
Fixes #19373
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes #19373
</pre>
</div>
</content>
</entry>
<entry>
<title>Use Ways API instead of Set specific functions</title>
<updated>2021-07-21T06:46:50+00:00</updated>
<author>
<name>Fendor</name>
<email>power.walross@gmail.com</email>
</author>
<published>2021-07-19T09:42:01+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/haskell.git/commit/?id=5b157eb2bea7fc4ad654c83258cf1ab6ad0f85f0'/>
<id>5b157eb2bea7fc4ad654c83258cf1ab6ad0f85f0</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Refactor SuggestExtension constructor in GhcHint</title>
<updated>2021-07-21T06:46:13+00:00</updated>
<author>
<name>Alfredo Di Napoli</name>
<email>alfredo@well-typed.com</email>
</author>
<published>2021-07-14T06:50:22+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/haskell.git/commit/?id=06d1ca856d3374bf8dac952740cfe4cef76a350d'/>
<id>06d1ca856d3374bf8dac952740cfe4cef76a350d</id>
<content type='text'>
This commit refactors the SuggestExtension type constructor of the
GhcHint to be more powerful and flexible. In particular, we can now
embed extra user information (essentially "sugar") to help clarifying
the suggestion. This makes the following possible:

Suggested fix: Perhaps you intended to use GADTs
               or a similar language extension to enable syntax: data T where

We can still give to IDEs and tools a `LangExt.Extension` they can use,
but in the pretty-printed message we can tell the user a bit more on why
such extension is needed.

On top of that, we now have the ability to express conjuctions and
disjunctons, for those cases where GHC suggests to enable "X or Y" and
for the cases where we need "X and Y".
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This commit refactors the SuggestExtension type constructor of the
GhcHint to be more powerful and flexible. In particular, we can now
embed extra user information (essentially "sugar") to help clarifying
the suggestion. This makes the following possible:

Suggested fix: Perhaps you intended to use GADTs
               or a similar language extension to enable syntax: data T where

We can still give to IDEs and tools a `LangExt.Extension` they can use,
but in the pretty-printed message we can tell the user a bit more on why
such extension is needed.

On top of that, we now have the ability to express conjuctions and
disjunctons, for those cases where GHC suggests to enable "X or Y" and
for the cases where we need "X and Y".
</pre>
</div>
</content>
</entry>
<entry>
<title>driver: Fix recompilation for modules importing GHC.Prim</title>
<updated>2021-07-21T06:45:39+00:00</updated>
<author>
<name>Matthew Pickering</name>
<email>matthewtpickering@gmail.com</email>
</author>
<published>2021-07-05T13:16:35+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/haskell.git/commit/?id=9eb1641e0ef10a7887e794d4d114c9a18a2fd265'/>
<id>9eb1641e0ef10a7887e794d4d114c9a18a2fd265</id>
<content type='text'>
The GHC.Prim module is quite special as there is no interface file,
therefore it doesn't appear in ms_textual_imports, but the ghc-prim
package does appear in the direct package dependencies. This confused
the recompilation checking which couldn't find any modules from ghc-prim
and concluded that the package was no longer a dependency.

The fix is to keep track of whether GHC.Prim is imported separately in
the relevant places.

Fixes #20084
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The GHC.Prim module is quite special as there is no interface file,
therefore it doesn't appear in ms_textual_imports, but the ghc-prim
package does appear in the direct package dependencies. This confused
the recompilation checking which couldn't find any modules from ghc-prim
and concluded that the package was no longer a dependency.

The fix is to keep track of whether GHC.Prim is imported separately in
the relevant places.

Fixes #20084
</pre>
</div>
</content>
</entry>
<entry>
<title>hadrian: Update docs targets documentation [skip ci]</title>
<updated>2021-07-20T08:22:46+00:00</updated>
<author>
<name>Matthew Pickering</name>
<email>matthewtpickering@gmail.com</email>
</author>
<published>2021-07-20T08:22:06+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/haskell.git/commit/?id=d706fd0432925caf62673a55237a005e22bc4450'/>
<id>d706fd0432925caf62673a55237a005e22bc4450</id>
<content type='text'>
The README had got a little out of sync with the current state of
affairs.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The README had got a little out of sync with the current state of
affairs.
</pre>
</div>
</content>
</entry>
<entry>
<title>Make TmpFs independent of DynFlags</title>
<updated>2021-07-19T23:38:59+00:00</updated>
<author>
<name>Sylvain Henry</name>
<email>sylvain@haskus.fr</email>
</author>
<published>2021-07-19T14:52:06+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/haskell.git/commit/?id=58b960d2af0ebfc37104ec68a4df377a074951dd'/>
<id>58b960d2af0ebfc37104ec68a4df377a074951dd</id>
<content type='text'>
This is small step towards #19877. We want to make the Loader/Linker
interface more abstract to be easily reused (i.e. don't pass it
DynFlags) but the system linker uses TmpFs which required a DynFlags
value to get its temp directory. We explicitly pass the temp directory
now. Similarly TmpFs was consulting the DynFlags to decide whether to
clean or: this is now done by the caller in the driver code.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is small step towards #19877. We want to make the Loader/Linker
interface more abstract to be easily reused (i.e. don't pass it
DynFlags) but the system linker uses TmpFs which required a DynFlags
value to get its temp directory. We explicitly pass the temp directory
now. Similarly TmpFs was consulting the DynFlags to decide whether to
clean or: this is now done by the caller in the driver code.
</pre>
</div>
</content>
</entry>
<entry>
<title>Don't duplicate constructors in the simplifier</title>
<updated>2021-07-19T23:38:21+00:00</updated>
<author>
<name>Simon Peyton Jones</name>
<email>simonpj@microsoft.com</email>
</author>
<published>2021-07-16T08:22:24+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/haskell.git/commit/?id=535123e4f6505a148ccaa536c21282a87c42669c'/>
<id>535123e4f6505a148ccaa536c21282a87c42669c</id>
<content type='text'>
Ticket #20125 showed that the Simplifier could sometimes duplicate a
constructor binding.  CSE would often eliminate it later, but doing it
in the first place was utterly wrong.

See Note [Do not duplicate constructor applications] in Simplify.hs

I also added a short-cut to Simplify.simplNonRecX for the case
when the RHS is trivial.  I don't think this will change anything,
just make the compiler run a tiny bit faster.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Ticket #20125 showed that the Simplifier could sometimes duplicate a
constructor binding.  CSE would often eliminate it later, but doing it
in the first place was utterly wrong.

See Note [Do not duplicate constructor applications] in Simplify.hs

I also added a short-cut to Simplify.simplNonRecX for the case
when the RHS is trivial.  I don't think this will change anything,
just make the compiler run a tiny bit faster.
</pre>
</div>
</content>
</entry>
<entry>
<title>Rename RecordPuns to NamedFieldPuns in LangExt.Extension</title>
<updated>2021-07-19T23:37:47+00:00</updated>
<author>
<name>Alfredo Di Napoli</name>
<email>alfredo@well-typed.com</email>
</author>
<published>2021-07-13T06:32:12+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/haskell.git/commit/?id=3e8b39eaf098769d33c9a46657c18a277397424c'/>
<id>3e8b39eaf098769d33c9a46657c18a277397424c</id>
<content type='text'>
This commit renames the `RecordPuns` type constructor inside
`GHC.LanguageExtensions.Type.hs` to `NamedFieldPuns`.

The rationale is that the `RecordPuns` language extension was deprecated
a long time ago, but it was still present in the AST, introducing an
annoying mismatch between what GHC suggested (i.e. "use NamedFieldPuns")
and what that translated into in terms of Haskell types.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This commit renames the `RecordPuns` type constructor inside
`GHC.LanguageExtensions.Type.hs` to `NamedFieldPuns`.

The rationale is that the `RecordPuns` language extension was deprecated
a long time ago, but it was still present in the AST, introducing an
annoying mismatch between what GHC suggested (i.e. "use NamedFieldPuns")
and what that translated into in terms of Haskell types.
</pre>
</div>
</content>
</entry>
<entry>
<title>th: Weaken return type of myCoreToStgExpr</title>
<updated>2021-07-19T23:37:12+00:00</updated>
<author>
<name>Matthew Pickering</name>
<email>matthewtpickering@gmail.com</email>
</author>
<published>2021-06-29T11:02:47+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/haskell.git/commit/?id=952ba18e596f406d08003a9ff07f95a5a94a2ede'/>
<id>952ba18e596f406d08003a9ff07f95a5a94a2ede</id>
<content type='text'>
The previous code assumed properties of the CoreToStg translation,
namely that a core let expression which be translated to a single
non-recursive top-level STG binding. This assumption was false, as
evidenced by #20060.

The consequence of this was the need to modify the call sites of
`myCoreToStgExpr`, the main one being in hscCompileCoreExpr', which
the meant we had to use byteCodeGen instead of stgExprToBCOs to convert
the returned value to bytecode.

I removed the `stgExprToBCOs` function as it is no longer
used in the compiler.

There is still some partiallity with this patch (the lookup in
hscCompileCoreExpr') but this should be more robust that before.

Fixes #20060
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The previous code assumed properties of the CoreToStg translation,
namely that a core let expression which be translated to a single
non-recursive top-level STG binding. This assumption was false, as
evidenced by #20060.

The consequence of this was the need to modify the call sites of
`myCoreToStgExpr`, the main one being in hscCompileCoreExpr', which
the meant we had to use byteCodeGen instead of stgExprToBCOs to convert
the returned value to bytecode.

I removed the `stgExprToBCOs` function as it is no longer
used in the compiler.

There is still some partiallity with this patch (the lookup in
hscCompileCoreExpr') but this should be more robust that before.

Fixes #20060
</pre>
</div>
</content>
</entry>
</feed>
