[racket-users] Re: Portable version for Windows

2020-05-15 Thread Marcio Andrey Oliveira
The original article can be found here: https://www.wisdomandwonder.com/link/5656/portable-racket-for-windows-users. I cloned it to my own repository ( https://github.com/plicatibu/racket-portable) and you can get the installer of the portable version 7.7.0 here: ( https://github.com/plicatibu/r

[racket-users] Re: Trouble shooting net/http-client

2020-05-15 Thread je back
Sam: Thanks for the link to the source Jon: I didn't include an example in my original post because the call is for obtaining an authorization token from a private server which made it awkward to share. But, thanks to your example, I pursued coming up with a good example and managed to get my o

[racket-users] Re: raco pkg migrate previous versions

2020-05-15 Thread evdubs
If you're running Linux or (I assume) OS X, I think you might be able to just do the following: $ ls ~/.racket For me, that shows folders for Racket versions that include raco pkg install packages. Maybe that's sufficient? Evan On Friday, May 15, 2020 at 6:55:34 AM UTC-10, Curtis Dutton wrote

Re: [racket-users] Trouble shooting net/http-client

2020-05-15 Thread Jon Zeppieri
I can't reproduce this with a simple example. ``` #lang racket/base (require net/http-client) (define data "hello world!") (http-sendrecv "postman-echo.com" "/post" #:ssl? #f #:method #"POST" #:data data) ``` Maybe you could post your

Re: [racket-users] Trouble shooting net/http-client

2020-05-15 Thread Sam Tobin-Hochstadt
The source code is here: https://github.com/racket/racket/blob/master/racket/collects/net/http-client.rkt Sam On Fri, May 15, 2020 at 3:57 PM je back wrote: > > I'm having trouble with formatting the #:data parameter to a http-sendrecv > request. If I insert the string literal after #:data "my

[racket-users] Trouble shooting net/http-client

2020-05-15 Thread je back
I'm having trouble with formatting the #:data parameter to a http-sendrecv request. If I insert the string literal after #:data "my string" it works, if I bind the string to a symbol (define my-string "my string") and call with #:data my-string i get an error from the severs: HTTP/1.1 400 Bad

[racket-users] Re: Portable version for Windows

2020-05-15 Thread Marcio Andrey Oliveira
Never mind. I found a template for creating it. Best regards. Em quinta-feira, 14 de maio de 2020 14:35:43 UTC-3, Marcio Andrey Oliveira escreveu: > > Hi. > > I'm wondering if there is either any portable version or an easy way to > use install Racket in an pen drive. > > Thank you in advance.

[racket-users] raco pkg migrate previous versions

2020-05-15 Thread Curtis Dutton
Is there a way to view the previous versions that were installed from raco using raco pkg migrate? I always find myself trying to guess the previous version number after an upgrade to migrate from. Does raco pkg have the ability to list previously instlalled versions like drracket does? Thanks,

Re: [racket-users] SOLVED BUT needs documentation change: printing structures in typed Racket

2020-05-15 Thread Sam Tobin-Hochstadt
I've updated the docs. On Fri, May 15, 2020 at 10:33 AM Hendrik Boom wrote: > > On Fri, May 15, 2020 at 10:07:31AM -0400, Sam Tobin-Hochstadt wrote: > > Generics are not supported yet; you need to use structure type > > properties, like this: > > > > #lang typed/racket/base > > > > (: parameter-p

[racket-users] SOLVED BUT needs documentation change: printing structures in typed Racket

2020-05-15 Thread Hendrik Boom
On Fri, May 15, 2020 at 10:07:31AM -0400, Sam Tobin-Hochstadt wrote: > Generics are not supported yet; you need to use structure type > properties, like this: > > #lang typed/racket/base > > (: parameter-print : Any Output-Port Any -> Any) > (define (parameter-print v p b) (fprintf p "hi\n")) >

Re: [racket-users] printing structures in typed Racket

2020-05-15 Thread Sam Tobin-Hochstadt
Generics are not supported yet; you need to use structure type properties, like this: #lang typed/racket/base (: parameter-print : Any Output-Port Any -> Any) (define (parameter-print v p b) (fprintf p "hi\n")) (struct parameter ([type : String] [name : Symbol] [len : (Option String)] [const?

Re: [racket-users] at sign in scribble

2020-05-15 Thread Sorawee Porncharoenwase
See https://docs.racket-lang.org/scribble/reader.html?q=escape#%28part._.The_.Scribble_.Syntax_at_a_.Glance%29 Either of this works: - @bold{a@"@"b} - @bold|{a@b}| On Fri, May 15, 2020 at 5:04 AM Hendrik Boom wrote: > I hae not been able to figure out from the scribble documentation how to >

[racket-users] at sign in scribble

2020-05-15 Thread Hendrik Boom
I hae not been able to figure out from the scribble documentation how to produce a document containing an at sign. Just putting the desired at sign into the source file of course doesn't work, since the at-reader intercepts it. -- hendrik -- You received this message because you are subscri

[racket-users] printing structures in typed Racket

2020-05-15 Thread Hendrik Boom
How does one provide a method to print strutures in typed Racket? (struct parameter ([type : XML] [name : Symbol] [len : (Option String)] [const? : Boolean] [stars : Integer]) #:methods gen:custom-write [(define write-proc parameter-print)] ) seems not to work. But something like this d