
2 Sep
2008
2 Sep
'08
4:39 a.m.
I still think that (3) would be superiour.. Is there a way to define my own >>= and >> functions such as:
{-# define custom do doX; (>>=) : mybind , >> : "my>>" #-} body $ doX args <- lift $ getArgs This would be terrific.
Sincerly Marc Weber
dons has told me about 06:27 < dons> http://www.haskell.org/ghc/docs/latest/html/users_guide/syntax-extns.html#re... 06:27 < lambdabot> Title: 8.3.�Syntactic extensions, example : module Main where import Prelude import Debug.Trace import System.IO main = do let (>>=) a b = trace (show "woah") $ (Prelude.>>=) a b getLine >>= print so actually this can be done? I'll try it. Marc Weber