[clean-list] order of parameters of "fwrites"
lethevert
acatofearlgrey at ybb.ne.jp
Thu Oct 13 01:20:44 MEST 2005
> class (<<<) infixl a :: !*File !a -> *File
o, I have overlooked <<< operator. orz
and it solved previous problem like: foldl (<<<) f lst
But I found another problem.
The priority of <<< operator.
If <<< operator was defined like;
class (<<<) infixl 0 a :: !*File !a -> *File
then you could use it as such;
f = f <<< '1 + 1 =' <<< 1 + 1 <<< '\n'
But actually <<< operator is defined as below;
class (<<<) infixl a :: !*File !a -> *File
then you should use it as such;
f = f <<< '1 + 1 =' <<< (1 + 1) <<< '\n'
It's subtle, isn't it?
--
lethevert
lethevert at users.sourceforge.net
More information about the clean-list
mailing list