<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/ocaml.git/typing/oprint.ml, branch pr8908</title>
<subtitle>github.com: ocaml/ocaml
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/ocaml.git/'/>
<entry>
<title>PR#8908: used as a base for other PRs.</title>
<updated>2019-09-11T17:44:31+00:00</updated>
<author>
<name>Thomas Refis</name>
<email>thomas.refis@gmail.com</email>
</author>
<published>2019-09-02T10:43:26+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/ocaml.git/commit/?id=6f492fdbd9c352c0502c118a80d451b8867b1dae'/>
<id>6f492fdbd9c352c0502c118a80d451b8867b1dae</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>typing/oprint: linear implementation of the functor printing heuristic</title>
<updated>2019-09-04T19:18:17+00:00</updated>
<author>
<name>Gabriel Scherer</name>
<email>gabriel.scherer@gmail.com</email>
</author>
<published>2019-09-04T13:50:45+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/ocaml.git/commit/?id=c7b0f4d71df48a6151eb92c44ae4579ebff3ba35'/>
<id>c7b0f4d71df48a6151eb92c44ae4579ebff3ba35</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>typing/oprint: improve printing of functor arguments</title>
<updated>2019-09-04T19:18:16+00:00</updated>
<author>
<name>Gabriel Scherer</name>
<email>gabriel.scherer@gmail.com</email>
</author>
<published>2019-09-02T14:39:32+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/ocaml.git/commit/?id=1ba9dce47f50bd533a75f9342c93c5b8ee2b613f'/>
<id>1ba9dce47f50bd533a75f9342c93c5b8ee2b613f</id>
<content type='text'>
This commit improves the printing of mixed anonymous/non-anonymous
functor signatures from (before)

    module type LongFunctor =
      functor (X : A) -&gt; B -&gt; functor (Z : C) -&gt; D -&gt; E -&gt; sig end

to (with this commit)

    module type LongFunctor =
      functor (X : A) (_ : B) (Z : C) -&gt; D -&gt; E -&gt; sig end
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This commit improves the printing of mixed anonymous/non-anonymous
functor signatures from (before)

    module type LongFunctor =
      functor (X : A) -&gt; B -&gt; functor (Z : C) -&gt; D -&gt; E -&gt; sig end

to (with this commit)

    module type LongFunctor =
      functor (X : A) (_ : B) (Z : C) -&gt; D -&gt; E -&gt; sig end
</pre>
</div>
</content>
</entry>
<entry>
<title>typing/oprint: rework printing of functor arguments</title>
<updated>2019-09-03T15:48:13+00:00</updated>
<author>
<name>Gabriel Scherer</name>
<email>gabriel.scherer@gmail.com</email>
</author>
<published>2019-09-02T14:39:32+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/ocaml.git/commit/?id=331b322ab573abb24e609934f8e7f62b92d26ad0'/>
<id>331b322ab573abb24e609934f8e7f62b92d26ad0</id>
<content type='text'>
The new implementation is closer to the grammar rules, and I find it
easier about.

For example, I was able to implement the long-form-or-short-form
heuristic easily, improving the printing from (before)

    module type LongFunctor =
      functor (X : A) -&gt; B -&gt; functor (Z : C) -&gt; D -&gt; E -&gt; sig end

to (with this commit)

    module type LongFunctor =
      functor (X : A) (_ : B) (Z : C) -&gt; D -&gt; E -&gt; sig end

The printing should be exactly the same as with the previous
implementation -- thanks to the help of Florian Angeletti.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The new implementation is closer to the grammar rules, and I find it
easier about.

For example, I was able to implement the long-form-or-short-form
heuristic easily, improving the printing from (before)

    module type LongFunctor =
      functor (X : A) -&gt; B -&gt; functor (Z : C) -&gt; D -&gt; E -&gt; sig end

to (with this commit)

    module type LongFunctor =
      functor (X : A) (_ : B) (Z : C) -&gt; D -&gt; E -&gt; sig end

The printing should be exactly the same as with the previous
implementation -- thanks to the help of Florian Angeletti.
</pre>
</div>
</content>
</entry>
<entry>
<title>typing/oprint: [minor] improve printing of empty signatures</title>
<updated>2019-09-03T09:44:21+00:00</updated>
<author>
<name>Gabriel Scherer</name>
<email>gabriel.scherer@gmail.com</email>
</author>
<published>2019-09-02T14:39:32+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/ocaml.git/commit/?id=071bae4c5f8a05c5b72d82a68a9979f25ee18dbb'/>
<id>071bae4c5f8a05c5b72d82a68a9979f25ee18dbb</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #8906 from Octachron/functor_arrow_associativity</title>
<updated>2019-09-02T15:51:17+00:00</updated>
<author>
<name>Florian Angeletti</name>
<email>florian.angeletti@inria.fr</email>
</author>
<published>2019-09-02T15:51:17+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/ocaml.git/commit/?id=2bd33ee515eef130e745d6bba9a6e88f10803955'/>
<id>2bd33ee515eef130e745d6bba9a6e88f10803955</id>
<content type='text'>
Print parentheses in (A-&gt;B)-&gt;C</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Print parentheses in (A-&gt;B)-&gt;C</pre>
</div>
</content>
</entry>
<entry>
<title>Print parentheses in (A-&gt;B)-&gt;C</title>
<updated>2019-09-02T13:16:47+00:00</updated>
<author>
<name>Florian Angeletti</name>
<email>florian.angeletti@inria.fr</email>
</author>
<published>2019-08-29T16:12:12+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/ocaml.git/commit/?id=740baf0317e063cbd9ebb545999ad198c396a8da'/>
<id>740baf0317e063cbd9ebb545999ad198c396a8da</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>oprint: add break hint after functor args</title>
<updated>2019-08-29T12:48:46+00:00</updated>
<author>
<name>Florian Angeletti</name>
<email>florian.angeletti@inria.fr</email>
</author>
<published>2019-08-29T08:04:38+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/ocaml.git/commit/?id=6032e9cf491832171680d5b06d72bf8980ac95dc'/>
<id>6032e9cf491832171680d5b06d72bf8980ac95dc</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Printing additional info about types mismatch during compilation error.</title>
<updated>2019-07-30T08:51:02+00:00</updated>
<author>
<name>Mekhrubon Turaev</name>
<email>mturaev@vdc-qws-i20570a.delacy.com</email>
</author>
<published>2019-07-11T09:29:44+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/ocaml.git/commit/?id=407d650f6e334d7aa190afc7ff88b415f35e799f'/>
<id>407d650f6e334d7aa190afc7ff88b415f35e799f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Custom Exception Handlers at toplevel (#8594)</title>
<updated>2019-04-14T13:38:27+00:00</updated>
<author>
<name>Andrew Litteken</name>
<email>andrew.litteken@gmail.com</email>
</author>
<published>2019-04-14T13:38:27+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/ocaml.git/commit/?id=d4ef2eecea30cbf44029e87ec3600aca87f5bf25'/>
<id>d4ef2eecea30cbf44029e87ec3600aca87f5bf25</id>
<content type='text'>
fixes #7156 

Two new functions exposed:

```ocaml
val to_string_default: exn -&gt; string
(** [Printexc.to_string_default e] returns a string representation of the
    exception [e], ignoring all registered exception printers.
    @since 4.09
*)

val use_printers: exn -&gt; string option
(** [Printexc.use_printers e] returns [None] if there are no registered
    printers and [Some s] with else as the resulting string otherwise.
    @since 4.09
*)
```</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
fixes #7156 

Two new functions exposed:

```ocaml
val to_string_default: exn -&gt; string
(** [Printexc.to_string_default e] returns a string representation of the
    exception [e], ignoring all registered exception printers.
    @since 4.09
*)

val use_printers: exn -&gt; string option
(** [Printexc.use_printers e] returns [None] if there are no registered
    printers and [Some s] with else as the resulting string otherwise.
    @since 4.09
*)
```</pre>
</div>
</content>
</entry>
</feed>
