caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* surprising type error with labels
@ 2008-06-19 21:38 Jake Donham
  2008-06-19 21:58 ` [Caml-list] " Jeremy Yallop
  0 siblings, 1 reply; 4+ messages in thread
From: Jake Donham @ 2008-06-19 21:38 UTC (permalink / raw)
  To: caml users

Hi list,

Why does

 ListLabels.find (fun _ -> true) [];;

produce

 Characters 16-31:
   ListLabels.find (fun _ -> true) [];;
                   ^^^^^^^^^^^^^^^
 This expression should not be a function, the expected type is
 ('a -> 'b) list

I thought the rule was that "if an application is total, labels may be
omitted." (4.1 in the manual). (I was trying to do module List =
ListLabels at the top of a file.) Thanks,

Jake


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-06-20 13:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-06-19 21:38 surprising type error with labels Jake Donham
2008-06-19 21:58 ` [Caml-list] " Jeremy Yallop
2008-06-20 12:53   ` Mark Shinwell
2008-06-20 13:39     ` Jeremy Yallop

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).