haskell-src-meta Package

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

haskell-src-meta Package

George Giorgidze
Hi,

In my project I needed a function that would parse a string into a
template-haskell AST representing the Haskell expression. To be more
precise I needed a function with the following type signature.

:: String -> Either String Language.Haskell.TH.Syntax.Exp

This kind of function should exist in the implementation of
template-haskell, however it is not exported for public consumption
from template-haskell package.

There is haskell-src-exts package that provides a Haskell expression
parser however it uses its own Exp data type which differs from the
template haskell representation Exp.

After that, I found haskell-src-meta package that provided the
function I needed:

parseExp :: String -> Either String TH.Exp

This function uses parser from  haskell-src-exts package and after
that translates returned Exp representation into the template-haskell
representation of Exp.

So problem has been solved. However, In the light of recent changes
and enhancements in the haskell-src-exts, haskell-src-meta package on
Hackage is broken. I have fixed the broken package and contacted its
author and maintainer (Matt Morrow). However, he did not reply.

I have a number of questions:

Was the use of haskell-src-meta really neccessary, I mean, is there
any other package that provides the functionality of aforementioned
parseExp function?
Can I upload the fixed version of haskell-src-meta package to Hackage
and assume its maintenance while Matt Morrow is silent?
Does anyone know how to contact Matt Morrow? His is not replying on my
emails sent to the email address specified in the package description.
The thing is that I do not want my package to be dependent on a
package that is broken on Hackage.

Cheers, George

--
George Giorgidze
http://www.cs.nott.ac.uk/~ggg/
_______________________________________________
Haskell-Cafe mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/haskell-cafe
Reply | Threaded
Open this post in threaded view
|

Re: haskell-src-meta Package

Matt Morrow
Hi,

I managed to miss not one, but two separate emails containing patches to
haskell-src meta. My sincere apologies to those who've sent me patches.
I'll be applying them among other improvement to src-meta and will update
the package on hackage in short time (today :).

Matt
_______________________________________________
Haskell-Cafe mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/haskell-cafe