Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] OCaml internal pretty-printing
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Remi Vanicat <remi.vanicat@l...>
Subject: Re: [Caml-list] OCaml internal pretty-printing
"J.B. Domelevo" <> writes:

> I can't get any information about how Ocaml handles the pretty-printing of basic
> values as lists or arrays. For instance :
> let rec l = 0 :: l ;;
> which builds an infinite list of zeros, is print until a certain point, and then
> the interactive OCaml ends with "..."
> The same occurs, of course, when Ocaml is given 'l;;'
> Anyone knowing how the internal pretty-printer can be tuned or even turned on
> and off ?

You should look to the Format module of the stdlib. Pretty printing is
done with it.

Rémi Vanicat

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: