2

I've been reading The Little Typer for a while now and I want to actually try out Pie now instead of just reading about it. Here are the steps in which I tried to get a Pie REPL up and running in the command line (on a Mac):

brew install racket
raco pkg install -n pie
racket -l pie -i

The last line outputs this:

Welcome to Racket v7.9 [bc].
standard-module-name-resolver: collection not found
  for module path: typed/racket/base
  collection: "typed/racket"
  in collection directories:
   /Users/caspianahlberg/Library/Racket/7.9/collects
   /usr/local/Cellar/minimal-racket/7.9/share/racket/collects
   /usr/local/Cellar/minimal-racket/7.9/share/racket/pkgs/racket-lib
> 

Furthermore, when testing out Pie expressions, like (cons 'foo 'bar), it tells me this:

stdin::1: #%top-interaction: unbound identifier;
 also, no #%app syntax transformer is bound
  at: #%top-interaction
  in: (#%top-interaction cons (quote foo) (quote bar))
  location...:
   stdin::1
  context...:
   /usr/local/Cellar/minimal-racket/7.9/share/racket/collects/racket/repl.rkt:11:26

It seems like something isn't installed correctly when running Pie from the command line. Does anyone who has run into this problem know how to resolve it?

Caspian Ahlberg
  • 934
  • 10
  • 19
  • 1
    Easier to use an offical Racket from http://download.racket-lang.org/ I suspect that you have minimal racket and so need to manually install typed racket as a package – mmmmmm Apr 22 '21 at 05:54
  • 1
    Also read https://formulae.brew.sh/formula/minimal-racket – mmmmmm Apr 22 '21 at 05:55

0 Answers0