[Haskell-cafe] Re: monad subexpressions

Bulat Ziganshin bulat.ziganshin at gmail.com
Sat Aug 4 11:19:14 EDT 2007


Hello Claus,

Saturday, August 4, 2007, 6:57:13 PM, you wrote:

> so, there could be a library defining

>     lhs ==: rhs = putMVar <$> lhs <*> rhs

> and in your application code, you could write

>   newEmptyMVar ==: putStrLn "hi there"

> (not that this would be useful;-)

it's great! how fools are invented fortran! anyone using
macroassembler can define macros for any shape of expression and use
them as they need. for example, instead of writing a=b*c+d it's much
easier to define macro

abcd macro a,b,op1,c,op2,d
  mov r1, b
  op1 r1, c
  op2 r1, d
  mov a, r1
endm

and use it. want to assign a=b/(c+d)? nothing can be easier! just
define one more macro!



-- 
Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com



More information about the Haskell-Cafe mailing list