if c (fwritec 'a' file) (fwritec 'b' file)

は大丈夫なのに

MyIf True t e = t
MyIf False t e = e
MyIf c (fwritec 'a' file) (fwritec 'b' file)

はだめなのか。