> On Jul 27, 2016, at 5:26 PM, Delphine Demange <delphine.dema...@gmail.com> > wrote:
> For my current use-case, using the racket in module mode, with the right > #lang directive at the top of the .rkt file is enough. > > For the interactive mode, however, I was expecting something like > > racket -I 'constructor-style-print racket' > > to behave similarly. > > But it leads to: > > Welcome to Racket v6.0. > module-declared?: contract violation > expected: (or/c module-path? module-path-index? resolved-module-path?) > given: '(submod (lib "constructor-style-print racket") configure-runtime) > argument position: 1st > other arguments...: > #t I have just added `constructor-style-print/racket/init` to the `quote-bad` package so that you can do this: $ racket -I constructor-style-print/racket/init Welcome to Racket v6.6.0.2. > (list 1 2 3) (list 1 2 3) > (list 1 2 3) (list 1 2 3) > (list (list 1 2 3 4 5 6 7 8) (list 1 2 3 4 5 6 7 8) (list 1 2 3 4 5 6 7 8)) (list (list 1 2 3 4 5 6 7 8) (list 1 2 3 4 5 6 7 8) (list 1 2 3 4 5 6 7 8)) > (list (list 1 2 3 4 5 6 7 8) (list 1 2 3 4 5 6 7 8) (list 1 2 3 4 5 6 7 8) (list 1 2 3 4 5 6 7 8)) (list (list 1 2 3 4 5 6 7 8) (list 1 2 3 4 5 6 7 8) (list 1 2 3 4 5 6 7 8) (list 1 2 3 4 5 6 7 8)) What it does is require `racket/init` and `constructor-style-print/lang/runtime-config`, and then call the `configure` function from that. I'm not sure why it requires two newlines after input expressions though. Alex Knauth > Just out of curiosity, what would be the adequate "-I" syntax, if any? > (what I read in quote-bad/constructor-style-print/lang/runtime-config.rkt > is too advanced racket code for me to find out how to change dynamically the > printer in the repl.) > > Best, > Delphine > -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.