You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is by way of a bit of a whinge, though by publishing this info it might help some other poor newbie like me.
Its also a more general comment about what I have found to be an impediment and discouragement to learning Ocaml. Namely a lot of simple things are left un-said and they accumulate to be a real impediment.
I am working on the query handler given as an example in "Real World Ocaml" and got to the point of
#require ppx_jane";;
type u = {a:int; b: float} [@@deriving sexp];;
to which I got the error message "Error: Unbound value int_of_sexp"
well a few hours, and much hair tearing, latter I had the following series of utop commands
#require "base";;
open Base;;
#require ppx_jane";;
type u = {a:int; b: float} [@@deriving sexp];;
sexp_of_u {a=3; b=7.}
Yeah, this is a general problem in the book. There are installation instructions that tell you what you need to do (linked to from the guided tour and from the prologue:
This is by way of a bit of a whinge, though by publishing this info it might help some other poor newbie like me.
Its also a more general comment about what I have found to be an impediment and discouragement to learning Ocaml. Namely a lot of simple things are left un-said and they accumulate to be a real impediment.
I am working on the query handler given as an example in "Real World Ocaml" and got to the point of
to which I got the error message "Error: Unbound value int_of_sexp"
well a few hours, and much hair tearing, latter I had the following series of
utop
commandswhich gave :
Not at all what I expected nor what the book predicted. So more searching and eventually the additional command
gave the expected output.
The text was updated successfully, but these errors were encountered: