Re: [Haskell-cafe] Getting frantic with FranTk
On Sun, 2008-01-13 at 14:54 +0100, Torsten Otto wrote: > Howdy, > > with a just-in-time-learning approach I managed to teach my class of > advanced high schoolers the basics of functional programming using > Haskell (I had only used Scheme before). Now to show them that Haskell > is not a weirdo esoteric command line only language, I thought I'd end > the class with spoken output (easy enough with the System module and > "say" in Mac OS) and a GUI for input using FranTk. Honestly, if you could get FranTk to work I'd be very impressed. My impression is that it is extremely bitrotted. I would suggest trying one of the other GUI libs that has seen some maintenance this century. (I'm not joking - http://haskell.org/FranTk/ says it works with ghc-4.04 which was released in 1999) That also probably means using ghc rather than hugs since most of the modern GUI libs only work with ghc. The only exception is HGL, which is rumoured to still work wit hugs (though again it has seen little to no maintenance in recent years). So I'd recommend the new SOE, OpenGL, Gtk2Hs or wxHaskell. All of those come with some demos you can show off. SOE and OpenGL are purely for doing drawings and animation (OpenGL is 3D of course). The other two are full blown GUI toolkits. http://haskell.org/soe http://haskell.org/haskellwiki/Opengl http://haskell.org/gtk2hs http://wxhaskell.sourceforge.net/ Duncan ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Getting frantic with FranTk
Thank you for the encouragement, Justin. Unfortunately I did try that. But it may also be where my basic understanding is missing: "the libraries" - do I have to somehow compile all the source or can I just use it? The source is Haskell, but it all comes with makefiles - are these for use with GHC or something more? I have a feeling I have to compile something somehow into some special location. I guess I'll just keep mucking around until I find a clue somewhere... All I know so far is how to use modules in Hugs which is enough for High School, but there is so much more out there... The Readme points out for the underlying Tcl: *** If on unix compile up the TclPrim.so library and run the tclexe script, with hugs as the argument program ie ../bin/tclexe hugs *** Ok, I can find tclexe, but how do I "compile up the TclPrim"? Probably pretty standard, I'm working on that (hints would still be appreciated...). I'm confused at the point where the demo imports FranTk allright, but then I've hunted the web for missing modules which left me with something else missing: Hugs> :l Demos.lhs ERROR "./Utils.hs" - Error while importing DLL "./Utils.so": dlopen(./Utils.so, 9): image not found Foreign.Marshal.Alloc> I don't begin to understand what this is telling me... If I get it to work, I'll put in on the Web for others to find. Torsten ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Getting frantic with FranTk
On Jan 13, 2008 5:54 AM, Torsten Otto <[EMAIL PROTECTED]> wrote: > Howdy, > > with a just-in-time-learning approach I managed to teach my class of > advanced high schoolers the basics of functional programming using > Haskell (I had only used Scheme before). Now to show them that Haskell That is awesome. I commend you. I only ever learned BASIC in school. > I have Hugs installed at /opt/local/bin/hugs in MacOS 10.4/10.5. What > do I do to get Hugs to recognize FranTk? I have downloaded it, but I > can't even get the demo to work, none of the imports can be found: I don't know much about Hugs and less about FranTk. You should probably verify that FranTk is still compatible with recent versions of Hugs. If they are, maybe try putting all the libraries in your current directory and then look for command line options to force hugs to look for them there? Justin ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] Getting frantic with FranTk
Howdy, with a just-in-time-learning approach I managed to teach my class of advanced high schoolers the basics of functional programming using Haskell (I had only used Scheme before). Now to show them that Haskell is not a weirdo esoteric command line only language, I thought I'd end the class with spoken output (easy enough with the System module and "say" in Mac OS) and a GUI for input using FranTk. There is however something very basic I'm missing: I have Hugs installed at /opt/local/bin/hugs in MacOS 10.4/10.5. What do I do to get Hugs to recognize FranTk? I have downloaded it, but I can't even get the demo to work, none of the imports can be found: module Main where import FranTk import qualified StaticTypes as S import IOExts For Windows, there's a .bat to use, but I can't figure out how to get it to work on a Unix-system like Mac OS. I seems to be more than just to include the path when starting Hugs... Thanks in advance for any hints, regards, Torsten Otto ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe