Type inference

"Oleg Mürk" <[email protected]> Sun, 23 Apr 2006 23:52:31 +0200
Newsgroups gmane.comp.lang.haskell.template
Message-ID <[email protected]>
Hello,

I have the following problem. I'd like to infer types of local bindings
using 'reify':
------------------------------------
testValue =
    let
        a = 10
    in
        $(do
            VarI _ t _ _ <- reify 'a
            lift (pprint t)
        )
-------------------------------------
But this code prints only:
-------------------------------------
*Debug> testValue
"t_0"
-------------------------------------
Is this intended behavior? Are there any workarounds?
Things work fine if symbol is defined in another module.
I do realise that in general $(...) may add additional constraints on local
variables.

OM

_______________________________________________
template-haskell mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/template-haskell