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
Post a Comment