Functional Metapost maintained?
Hi, I got to know Haskell through Functional Metapost. Those who use LaTeX and feel like programming some graphics in Haskell, might have a look at this: http://tex.loria.fr/prod-graph/functional-metapost-latex.pdf Trying to use the package I had some problems with the current Hugs and GHC, too. It seems like the version I have is quite dated: it uses fromDouble, fromInt, fromRealFrac etc. which GHC barks at. I made some modifications to have it compile, so that I can use it know, but I still have a couple of problems that should be washed out. But before I go for it, I'd like to know if somebody have got a newer version, or somebody else maintains it, or have some relevant information about that package, or anything... On the Web I found nothing, really. Cheers: Feri.
Am Mittwoch, 7. November 2001 13:04 schrieb Ferenc Wagner:
Hi,
I got to know Haskell through Functional Metapost. Those who use LaTeX and feel like programming some graphics in Haskell, might have a look at this:
http://tex.loria.fr/prod-graph/functional-metapost-latex.pdf
Trying to use the package I had some problems with the current Hugs and GHC, too. It seems like the version I have is quite dated: it uses fromDouble, fromInt, fromRealFrac etc. which GHC barks at.
I made some modifications to have it compile, so that I can use it know, but I still have a couple of problems that should be washed out. But before I go for it, I'd like to know if somebody have got a newer version, or somebody else maintains it, or have some relevant information about that package, or anything... On the Web I found nothing, really.
Cheers: Feri.
Hi Feri, great to hear that you liked FMP. Where did you get the package from? You can find the latest version here: http://www.cs.uu.nl/~ralf/software.html#fmp I am (sort of) maintaining it as I use it frequently for my publications (FMP was mainly written by Joachim Korittky, a former student of mine). Cheers, Ralf
On Thu, Nov 08, 2001 at 10:08:25AM +0100, Ralf Hinze wrote:
Hi Feri,
great to hear that you liked FMP. Where did you get the package from? You can find the latest version here:
http://www.cs.uu.nl/~ralf/software.html#fmp
I am (sort of) maintaining it as I use it frequently for my publications (FMP was mainly written by Joachim Korittky, a former student of mine).
This version still seems to expect an old version of ghc, since it uses fromInt (and expects it to be a member of Num), and deals with imports strangely; e.g., clients evidently expect 'FMPMpsyntax' to export 'Tension', which it doesn't, since it didn't import it from 'FMPPicture'. Is there a more recent version that at least compiles with ghc5? (I could fix these errors easily, but don't want to duplicate work.) Best, Dylan Thurston
Dylan Thurston <dpt@math.harvard.edu> writes:
This version still seems to expect an old version of ghc, since it uses fromInt (and expects it to be a member of Num), and deals with imports strangely; e.g., clients evidently expect 'FMPMpsyntax' to export 'Tension', which it doesn't, since it didn't import it from 'FMPPicture'. Is there a more recent version that at least compiles with ghc5? (I could fix these errors easily, but don't want to duplicate work.)
Yesterday evening I finally managed to make a patched version produce all the figures in the package's Tutorial.ps file (using Feb2001 Hugs.) I'm in the process of putting it on the Web, it will be ready this evening. BTW, I didn't notice import problems. They may be specific to GHC... I have got 5.02-1 now, I'll check later. Isn't Hugs enough for you for a while? Feri.
You can find a version of Functional Metapost, which works with current (2001 February) Hugs, on the following page: http://afavant.elte.hu/~wferi/funcmp/ This version is able to produce all the illustrations in the enclosed Tutorial on my machine. Good luck, waiting for your comments: Feri.
On Sat, Nov 24, 2001 at 04:52:00PM +0100, Ferenc Wagner wrote:
BTW, I didn't notice import problems. They may be specific to GHC... I have got 5.02-1 now, I'll check later.
I don't know if it's specific to GHC, but it's definitely a bug in Functional MetaPost (although probably easy to fix). For instance: a) FMPPicture exports the data type 'Tension' b) FMPMpsyntax does a restricted import of FMPPicture, not including 'Tension', and reexports 'module FMPPicture' c) FMPResolve imports and exports FMPMpsyntax d) FMPCore imports FMPResolve and expects 'Tension' to be defined The situation is a little more complicated, but I think any reasonable interpretation would give an import problem. The key problem is in (b). Unless this was some recent change in the report?
Isn't Hugs enough for you for a while?
Probably; I'll try it out. Thanks for the work! Best, Dylan
participants (3)
-
Dylan Thurston -
Ferenc Wagner -
Ralf Hinze