[Haskell-cafe] Remove redundancy with Template Haskell
Corentin Dupont
corentin.dupont at gmail.com
Wed Mar 27 21:13:41 CET 2013
Hi Café,
I have a function that looks like this:
call :: SomeFunction -> String -> SomeState
The string is actually the representation of the function passed in
parameter. It is stored in the state for documentation.
So a call looks like that:
call (\a -> putStrLn a) "\a -> putStrLn a"
There is a clear redundancy here, how could I remove it with Template
Haskell?
I cannot figure out...
Thanks!
Corentin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20130327/870e3a15/attachment.htm>
More information about the Haskell-Cafe
mailing list