sorawee
2020-1-25 11:19:14

sorawee
2020-1-25 11:19:40

You can use #:result in Racket 7.6


sorawee
2020-1-25 11:19:49

But it was not supported in 7.5


p.kushwaha97
2020-1-25 11:20:37

I see. Good to know that it’s been fixed.


mflatt
2020-1-25 13:30:59

It’s possible that DrRacket-created directories within compiled have gone wrong, and raco setup --clean doesn’t reach those. Do you find any compiled/drracket subdirectories? If so, does removing them help?


soegaard2
2020-1-25 14:48:39

Apropos puzzling programs: ; ; Putting Scheme to Work ; By Olivier Danvy ; Bigre special edition "Putting Scheme to Work" ; (define fix (let ((z (lambda (P) (lambda (u) (lambda (t) (lambda (t) (lambda (i) (lambda (n) (lambda (g) (lambda (S) (lambda (c) (lambda (h) (lambda (e) (lambda (m) (lambda (e) (lambda (t) (lambda (o) (lambda (W) (lambda (o) (lambda (r) (lambda (k) (lambda (!) (! (lambda (break) (((((((((((((((((((((W o) r) k) W) o) r) k) W) o) r) k) W) o) r) k) W) o) r) k) !) break))))))))))))))))))))))))) (let ((Z z)) (((((((((((((((((((z z) z) z) z) z) Z) Z) Z) Z) Z) Z) Z) z) z) z) z) z) z) z)))) ((fix (lambda (f) (lambda (n) (if (zero? n) 1 (* n (f (- n 1))))))) 9)


p.kushwaha97
2020-1-25 16:13:40

Typed racket is having trouble instantiating type variables to specific types, e.g. when I’m using foldl, I get the error: ; Types: (-> a b b) b (Listof a) -> b ; (-> a b c c) c (Listof a) (Listof b) -> c ; (-> a b c d d) d (Listof a) (Listof b) (Listof c) -> d ; Arguments: (All (a) (-> (Setof a) (Setof a) (Setof a))) (Setof Symbol) (Listof (Setof Symbol)) ; Expected result: (Setof Symbol)


p.kushwaha97
2020-1-25 16:14:49

It would be resolved if Symbol is substituted for a (in the first out of 3 type signatures). Is the engine expected to get confused in such cases?

How can I manually specify a so that my program typechecks?


p.kushwaha97
2020-1-25 16:19:59

Solved: I was looking for inst.


eric.e.dodd
2020-1-25 18:39:23

@eric.e.dodd has joined the channel


eric.e.dodd
2020-1-25 18:39:51

howdy!


p.kushwaha97
2020-1-25 20:20:53

Is there a way I can modify the string representation of a struct shown in the repl?


sorawee
2020-1-25 20:21:46

Yep



notjack
2020-1-25 21:16:33

@p.kushwaha97 How do you want to modify it?


krismicinski
2020-1-25 23:17:37

this is cool!


eric.e.dodd
2020-1-26 00:57:32

having issues with racket’s make install. anyone have time to help a complete newb?


philip.mcgrath
2020-1-26 01:00:37

There wasn’t a compiled/drracket in the same directory as the script. I manually deleted all of the compiled/drracket directories in the parts of the ricoeur collection that ricoeur/tei depends on, but I’m getting the same error.