f# - Unexpected keyword 'type' in implementation file -


in vs 2008, f# 2.0, when compile ml script have error unexpected keyword 'type' in implementation file

#indent "off" pragma     type hw <'o,'m>   =   cat of <'m->'o>*<'m->'o>*<'o->'m>; 

original

datatype ('o,'m) hw  =   cat of ('m->'o)*('m->'o)*('o->'m); 

you wanted

type hw<'o,'m> = | cat of ('m -> 'o) * ('m -> 'o) * ('o -> 'm) 

Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -