(* Ocaml *) --Haskell let foo = 42 foo = 42 -- top level declaration type bar = data bar = -- type declaration
type bar = { x:int; (* defination *) y:float; } bar.x (* "member" acces *)