Re: [Haskell-cafe] ghci + hopengl
Neat, thanks for that tip Peter. It looks like mkbundl does everything I do manually, and more. But just for the record, in case anyone (Scott?) wants to do it the hard way... :) 1. Download the macosx-app shell script from wxhaskell. Make it executable (i.e. chmod a+x macosx-app) 2. Run macosx-app [executable-filename], e.g. macosx-app Playground 3. Run open [generated app directory], e.g. open Playground.app I also blogged about it here. Duane Johnson http://blog.inquirylabs.com/ On Mar 24, 2009, at 4:48 PM, Peter Verswyvelen wrote: On Tue, Mar 24, 2009 at 11:35 PM, Scott A. Waterman tswater...@gmail.com wrote: Duane - yes, please. I've been wondering how to compile to a Mac .app structure. http://hackage.haskell.org/cgi-bin/hackage-scripts/package/mkbndl Also, anyone have any hints about distributing Haskell apps for mac, when you know the target will certianly *not* have a GHC environment on it? GHC statically links everything, so you don't need the GHC environment to run the app. Thanks --ts On Mar 21, 2009, at 2:18 PM, Duane Johnson wrote: I've had issues with ghci and opengl... I usually have to compile my programs before they will run. I'm not sure why that's the case, but I too get strange window behavior (sometimes it freezes, other times it doesn't even show up). If you're on a Mac and would like help compiling to a .app folder, let me know and I can post how I did that. Regards, Duane Johnson http://blog.inquirylabs.com/ ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] ghci + hopengl
Duane - yes, please. I've been wondering how to compile to a Mac .app structure. Also, anyone have any hints about distributing Haskell apps for mac, when you know the target will certianly *not* have a GHC environment on it? Thanks --ts On Mar 21, 2009, at 2:18 PM, Duane Johnson wrote: I've had issues with ghci and opengl... I usually have to compile my programs before they will run. I'm not sure why that's the case, but I too get strange window behavior (sometimes it freezes, other times it doesn't even show up). If you're on a Mac and would like help compiling to a .app folder, let me know and I can post how I did that. Regards, Duane Johnson http://blog.inquirylabs.com/ ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] ghci + hopengl
On Tue, Mar 24, 2009 at 11:35 PM, Scott A. Waterman tswater...@gmail.comwrote: Duane - yes, please. I've been wondering how to compile to a Mac .app structure. http://hackage.haskell.org/cgi-bin/hackage-scripts/package/mkbndl Also, anyone have any hints about distributing Haskell apps for mac, when you know the target will certianly *not* have a GHC environment on it? GHC statically links everything, so you don't need the GHC environment to run the app. Thanks --ts On Mar 21, 2009, at 2:18 PM, Duane Johnson wrote: I've had issues with ghci and opengl... I usually have to compile my programs before they will run. I'm not sure why that's the case, but I too get strange window behavior (sometimes it freezes, other times it doesn't even show up). If you're on a Mac and would like help compiling to a .app folder, let me know and I can post how I did that. Regards, Duane Johnson http://blog.inquirylabs.com/ ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] ghci + hopengl
Hello, I'm writing a program for plotting vectorial functions and maybe something else in the future. My goal is to be able to have the following usage: Prelude :l Galo.hs Prelude Galo show3Dvec (\t - (t, t, 0)) [0.0,0.01 .. 1.0] * shows graph * Prelude Galo show3Dvec (\t - (t, t**2, 0)) [0.0,0.01 .. 1.0] * shows new graph * I already done something, the main module can be found here: http://github.com/aflag/galo/blob/0a54a53db0f66384cfc0775f12582931d0fb4205/Galo.hs The whole project is found here: http://github.com/aflag/galo/tree/master I think mainLoop is somehow responsible to exit the whole thing. I tried to even call that function through forkIO. But didn't work quite well: my terminal started behaving really weird after I closed the window. Could you explain me what is going on and what should I look into for understanding how to solve the issue? []'s Rafael ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] ghci + hopengl
I've had issues with ghci and opengl... I usually have to compile my programs before they will run. I'm not sure why that's the case, but I too get strange window behavior (sometimes it freezes, other times it doesn't even show up). If you're on a Mac and would like help compiling to a .app folder, let me know and I can post how I did that. Regards, Duane Johnson http://blog.inquirylabs.com/ On Mar 21, 2009, at 1:27 PM, Rafael Cunha de Almeida wrote: Hello, I'm writing a program for plotting vectorial functions and maybe something else in the future. My goal is to be able to have the following usage: Prelude :l Galo.hs Prelude Galo show3Dvec (\t - (t, t, 0)) [0.0,0.01 .. 1.0] * shows graph * Prelude Galo show3Dvec (\t - (t, t**2, 0)) [0.0,0.01 .. 1.0] * shows new graph * I already done something, the main module can be found here: http://github.com/aflag/galo/blob/0a54a53db0f66384cfc0775f12582931d0fb4205/Galo.hs The whole project is found here: http://github.com/aflag/galo/tree/master I think mainLoop is somehow responsible to exit the whole thing. I tried to even call that function through forkIO. But didn't work quite well: my terminal started behaving really weird after I closed the window. Could you explain me what is going on and what should I look into for understanding how to solve the issue? []'s Rafael ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe