<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/haskell.git/compiler/Language, branch wip/17594-implementation</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>parser and renamer checkpoints</title>
<updated>2021-11-03T10:27:50+00:00</updated>
<author>
<name>DanielRrr</name>
<email>daniel.rogozin@serokell.io</email>
</author>
<published>2021-11-03T10:11:26+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/haskell.git/commit/?id=8a379ba2f6f66d7ab49e5479cba5a05fa9862ce8'/>
<id>8a379ba2f6f66d7ab49e5479cba5a05fa9862ce8</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>HsToken for let/in (#19623)</title>
<updated>2021-11-02T05:36:32+00:00</updated>
<author>
<name>Vladislav Zavialov</name>
<email>vlad.z.4096@gmail.com</email>
</author>
<published>2021-06-10T13:04:26+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/haskell.git/commit/?id=f1a782dd29480c4570465ea0aa06008bbf444e13'/>
<id>f1a782dd29480c4570465ea0aa06008bbf444e13</id>
<content type='text'>
One more step towards the new design of EPA.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
One more step towards the new design of EPA.
</pre>
</div>
</content>
</entry>
<entry>
<title>Introduce Concrete# for representation polymorphism checks</title>
<updated>2021-10-17T18:06:46+00:00</updated>
<author>
<name>sheaf</name>
<email>sam.derbyshire@gmail.com</email>
</author>
<published>2021-10-15T21:09:39+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/haskell.git/commit/?id=81740ce83976e9d6b68594f8a4b489452cca56e5'/>
<id>81740ce83976e9d6b68594f8a4b489452cca56e5</id>
<content type='text'>
PHASE 1: we never rewrite Concrete# evidence.

This patch migrates all the representation polymorphism checks to
the typechecker, using a new constraint form

  Concrete# :: forall k. k -&gt; TupleRep '[]

Whenever a type `ty` must be representation-polymorphic
(e.g. it is the type of an argument to a function), we emit a new
`Concrete# ty` Wanted constraint. If this constraint goes
unsolved, we report a representation-polymorphism error to the user.
The 'FRROrigin' datatype keeps track of the context of the
representation-polymorphism check, for more informative error messages.

This paves the way for further improvements, such as
allowing type families in RuntimeReps and improving the soundness
of typed Template Haskell. This is left as future work (PHASE 2).

fixes #17907 #20277 #20330 #20423 #20426

updates haddock submodule

-------------------------
Metric Decrease:
    T5642
-------------------------
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
PHASE 1: we never rewrite Concrete# evidence.

This patch migrates all the representation polymorphism checks to
the typechecker, using a new constraint form

  Concrete# :: forall k. k -&gt; TupleRep '[]

Whenever a type `ty` must be representation-polymorphic
(e.g. it is the type of an argument to a function), we emit a new
`Concrete# ty` Wanted constraint. If this constraint goes
unsolved, we report a representation-polymorphism error to the user.
The 'FRROrigin' datatype keeps track of the context of the
representation-polymorphism check, for more informative error messages.

This paves the way for further improvements, such as
allowing type families in RuntimeReps and improving the soundness
of typed Template Haskell. This is left as future work (PHASE 2).

fixes #17907 #20277 #20330 #20423 #20426

updates haddock submodule

-------------------------
Metric Decrease:
    T5642
-------------------------
</pre>
</div>
</content>
</entry>
<entry>
<title>Reject GADT pattern matches in arrow notation</title>
<updated>2021-10-09T08:46:05+00:00</updated>
<author>
<name>sheaf</name>
<email>sam.derbyshire@gmail.com</email>
</author>
<published>2021-10-06T16:22:28+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/haskell.git/commit/?id=31983ab4c65204ad0fd14aac4c00648f5fa6ad6b'/>
<id>31983ab4c65204ad0fd14aac4c00648f5fa6ad6b</id>
<content type='text'>
  Tickets #20469 and #20470 showed that the current
  implementation of arrows is not at all up to the task
  of supporting GADTs: GHC produces ill-scoped Core programs
  because it doesn't propagate the evidence introduced by a GADT
  pattern match.

  For the time being, we reject GADT pattern matches in arrow notation.
  Hopefully we are able to add proper support for GADTs in arrows
  in the future.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
  Tickets #20469 and #20470 showed that the current
  implementation of arrows is not at all up to the task
  of supporting GADTs: GHC produces ill-scoped Core programs
  because it doesn't propagate the evidence introduced by a GADT
  pattern match.

  For the time being, we reject GADT pattern matches in arrow notation.
  Hopefully we are able to add proper support for GADTs in arrows
  in the future.
</pre>
</div>
</content>
</entry>
<entry>
<title>Trees That Grow refactor for HsTick and HsBinTick</title>
<updated>2021-09-30T04:57:09+00:00</updated>
<author>
<name>Andrea Condoluci</name>
<email>andrea.condoluci@tweag.io</email>
</author>
<published>2021-09-27T09:47:29+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/haskell.git/commit/?id=205f0f921590a6365ed1c36d34f557a1e387bfa2'/>
<id>205f0f921590a6365ed1c36d34f557a1e387bfa2</id>
<content type='text'>
Move HsTick and HsBinTick to XExpr, the extension tree of HsExpr.

Part of #16830 .
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Move HsTick and HsBinTick to XExpr, the extension tree of HsExpr.

Part of #16830 .
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove NoGhcTc usage from HsMatchContext</title>
<updated>2021-09-28T05:51:48+00:00</updated>
<author>
<name>Artyom Kuznetsov</name>
<email>hi@wzrd.ht</email>
</author>
<published>2021-08-13T06:42:09+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/haskell.git/commit/?id=0da019be1b613ff5ae33a45b3bb3dd6b389260d6'/>
<id>0da019be1b613ff5ae33a45b3bb3dd6b389260d6</id>
<content type='text'>
NoGhcTc is removed from HsMatchContext. As a result of this,
HsMatchContext GhcTc is now a valid type that has Id in it,
instead of Name and tcMatchesFun now takes Id instead of Name.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
NoGhcTc is removed from HsMatchContext. As a result of this,
HsMatchContext GhcTc is now a valid type that has Id in it,
instead of Name and tcMatchesFun now takes Id instead of Name.
</pre>
</div>
</content>
</entry>
<entry>
<title>Move `ol_witness` to `OverLitTc`</title>
<updated>2021-08-13T11:53:53+00:00</updated>
<author>
<name>Dr. ERDI Gergo</name>
<email>gergo@erdi.hu</email>
</author>
<published>2021-07-22T03:37:35+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/haskell.git/commit/?id=7ad813a480c9ed383fe1fea11a57f90d4f6f9b71'/>
<id>7ad813a480c9ed383fe1fea11a57f90d4f6f9b71</id>
<content type='text'>
We also add a new `ol_from_fun` field to renamed (but not yet
typechecked) OverLits. This has the nice knock-on effect of making
total some typechecker functions that used to be partial.

Fixes #20151
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We also add a new `ol_from_fun` field to renamed (but not yet
typechecked) OverLits. This has the nice knock-on effect of making
total some typechecker functions that used to be partial.

Fixes #20151
</pre>
</div>
</content>
</entry>
<entry>
<title>Modify InlineSpec data constructor (helps fix #18138)</title>
<updated>2021-08-11T22:15:05+00:00</updated>
<author>
<name>Alina Banerjee</name>
<email>alina@glitchgirl.us</email>
</author>
<published>2021-08-05T08:08:31+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/haskell.git/commit/?id=100ffe75f509a73f1b26e768237888646f522b6c'/>
<id>100ffe75f509a73f1b26e768237888646f522b6c</id>
<content type='text'>
The inl_inline field of the InlinePragma record is modified to store pragma
source text by adding a data constructor of type SourceText. This can help in
tracking the actual text of pragma names.

Add/modify functions, modify type instance for InlineSpec type

Modify parser, lexer to handle InlineSpec constructors containing SourceText

Modify functions with InlineSpec type

Extract pragma source from InlineSpec for SpecSig, InlineSig types

Modify cvtInline function to add SourceText to InlineSpec type

Extract name for InlineSig, SpecSig from pragma, SpectInstSig from source (fixes #18138)

Extract pragma name for SpecPrag pragma, SpecSig signature

Add Haddock annotation for inlinePragmaName function

Add Haddock annotations for using helper functions in hsSigDoc

Remove redundant ppr in pragma name for SpecSig, InlineSig; update comment

Rename test to T18138 for misplaced SPECIALIZE pragma testcase
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The inl_inline field of the InlinePragma record is modified to store pragma
source text by adding a data constructor of type SourceText. This can help in
tracking the actual text of pragma names.

Add/modify functions, modify type instance for InlineSpec type

Modify parser, lexer to handle InlineSpec constructors containing SourceText

Modify functions with InlineSpec type

Extract pragma source from InlineSpec for SpecSig, InlineSig types

Modify cvtInline function to add SourceText to InlineSpec type

Extract name for InlineSig, SpecSig from pragma, SpectInstSig from source (fixes #18138)

Extract pragma name for SpecPrag pragma, SpecSig signature

Add Haddock annotation for inlinePragmaName function

Add Haddock annotations for using helper functions in hsSigDoc

Remove redundant ppr in pragma name for SpecSig, InlineSig; update comment

Rename test to T18138 for misplaced SPECIALIZE pragma testcase
</pre>
</div>
</content>
</entry>
<entry>
<title>Refactor HsStmtContext and remove HsDoRn</title>
<updated>2021-08-10T19:00:42+00:00</updated>
<author>
<name>Artyom Kuznetsov</name>
<email>hi@wzrd.ht</email>
</author>
<published>2021-07-29T12:10:29+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/haskell.git/commit/?id=130f94dbd3536bd409621cbaac4659ababf613b3'/>
<id>130f94dbd3536bd409621cbaac4659ababf613b3</id>
<content type='text'>
Parts of HsStmtContext were split into a separate data structure
HsDoFlavour. Before this change HsDo used to have HsStmtContext
inside, but in reality only parts of HsStmtContext were used and other
cases were invariants handled with panics. Separating those parts
into its own data structure helps us to get rid of those panics as
well as HsDoRn type family.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Parts of HsStmtContext were split into a separate data structure
HsDoFlavour. Before this change HsDo used to have HsStmtContext
inside, but in reality only parts of HsStmtContext were used and other
cases were invariants handled with panics. Separating those parts
into its own data structure helps us to get rid of those panics as
well as HsDoRn type family.
</pre>
</div>
</content>
</entry>
<entry>
<title>Minor fix to pretty-printing of linear types</title>
<updated>2021-08-05T11:14:39+00:00</updated>
<author>
<name>Krzysztof Gogolewski</name>
<email>krzysztof.gogolewski@tweag.io</email>
</author>
<published>2021-07-29T18:48:04+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/haskell.git/commit/?id=5d651c78fed7e55b3b3cd21a04499d1a2f75204d'/>
<id>5d651c78fed7e55b3b3cd21a04499d1a2f75204d</id>
<content type='text'>
The function ppr_arrow_chain was not printing multiplicities.
Also remove the Outputable instance: no longer used, and could cover
bugs like those.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The function ppr_arrow_chain was not printing multiplicities.
Also remove the Outputable instance: no longer used, and could cover
bugs like those.
</pre>
</div>
</content>
</entry>
</feed>
