Hi All,
I've been trying to write typed racket code with hyper-literate. The docs seem to suggest I can just add typed racket to the #lang hyper-literate;
So my trial code is;
#lang hyper-literate typed/racket
@chunk[<foo>
(: foo : (Integer -> Integer))
(define (foo n)
(* 2 n))]
The repl "runs" this code without any complaint, however when I try;
(foo 2)
I get the following error;
Type Checker: missing type for identifier;
consider adding a type annotation with `:'
identifier: foo in: foo.
So would someone mind telling me where I am going wrong.
thanks in advance,
greadey