Template Haskell - read function

2003-07-02 Thread Thomas L. Bevan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I'm struggling to write the following function in Template Haskell. I have a phantom type, data HTMLPage a = HTMLPage FilePath This type points to an HTML file, where 'a' refers to the return type of the posted form. So, mostly, I would

Re: Template Haskell - read function

2003-07-02 Thread Thomas L. Bevan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I have got a little further by defining the following functions and I now have a better defined question. - --Takes a list and converts it to a n-ary tuple - --i.e. Generates functions like [String] - (a,a,a) listToTuple i = lam [Pvar xs] (tup ([