Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
generalization and let module
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-06-21 (15:21)
From: Julien SIGNOLES <julien.signoles@c...>
Subject: generalization and let module
Hello all,

Just a single question: why is 'f' not generalizable in the following
example? I'm not able to find an example using any "let module" and
breaking the type safety.

module M = struct end
let f = let module N = M in fun x -> x