[Haskell-cafe] puzzling polymorphism behavior (7.0.3 windows)

2012-03-15 Thread gladstein
Why does the following program compile and produce the results it does? It seems like 3 and "x" got interpreted as the same type, (). Thanks in advance for your help. import Data.IORef import System.IO.Unsafe cell = unsafePerformIO $ newIORef [] push i = modifyIORef cell (++ [i]) main = do pu

[Haskell-cafe] haskell on suse?

2010-05-06 Thread gladstein
I've been spoiled by package managers that download and install everything for you, and I've forgotten how RPM works. In particular, I want to install Haskell on suse, and I read that "RPMs are available from openSUSE. " I followed the link, and found a bunch of folders of folders of RPM files.

[Haskell-cafe] MySQL and Haskell on Windows

2010-04-29 Thread gladstein
cabal install hdbc-mysql almost works on windows, but errors because the mysql_config command isn't part of the windows MySQL install. Has anyone been able to get a Haskell interface to MySql going on Windows, either directly or via odbc? cabal install haskelldb-hsql-odbc fails because it can't

[Haskell-cafe] ghc #defines

2010-04-14 Thread gladstein
I may need to put some #ifdef conditionalizations into some cross-platform code. I'm wondering where I can find the definitions of symbols like __NHC__. I tried googling but I'm swamped by uses, no definitions that I can see. ___ Haskell-Cafe mailing lis

[Haskell-cafe] mingw32_HOST_OS and friends

2010-04-12 Thread gladstein
Where can I find a list of such symbols and what they mean? Google finds lots of uses but no definitions, and I'd like to avoid guessing. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] libraries [was GUI haters]

2010-04-02 Thread gladstein
As a working engineer, one of my greatest frustrations is my inability to use Haskell in the workplace. The unfortunate fact is that my media industry clients use mostly Windows, some Macs, and no linux except for servers. The core system works everywhere, but many contributed libraries don't. GUIs

Re: [Haskell-cafe] Where are the haskell elders?

2010-04-01 Thread gladstein
>Perhaps without spewing it to thousands of readers while you're at it? Ahem. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] installing Network on windows

2010-03-17 Thread gladstein
I need some advice on the most straightforward way to install the Network package on Windows. I can install Cywgin if that's what it takes. Thanks in advance.   cabal install networkResolving dependencies...Configuring network-2.2.1.7...cabal: Error: some packages failed to install:network-2.2.1.7

[Haskell-cafe] RE: gtk2hs and ghc-6.10.4 on Windows (Vista)

2010-02-24 Thread gladstein
In correspondance with Alistair Bayley I learned that there is in fact a gtk2hs installer for 6.10.4. One can find it by Googling "gtk2hs 6.10.4" (which I did not think to do). The URL is in http://www.mail-archive.com/gtk2hs-de...@lists.sourceforge.net/msg00340.html The installer doesn't work if

[Haskell-cafe] grapefruit on windows or osX

2010-02-21 Thread gladstein
I'm unable to get grapefruit going on osx or windows because (I think) I can't get the underlying GTK installed. Most recently I can't install gtk2hs over 6.10.4 because the installer tells me my haskell install isn't working and I should reinstall 6.10.1. It invites me to continue anyway and fix

Re: [Haskell-cafe] (liftM join .) . mapM

2009-12-29 Thread gladstein
I couldn't resist the opportunity for some ascii abstract art. Emacs turns the backquoted bits blue. f `o` g = ( f) . g f `oo` g = (o f) . g f `ooo` g = (oo f) . g f `` g = (ooo f) . g f `o` g = ( f) . g f `oo` g = (o f) . g f `ooo` g = (oo f) . g f `` g = (

Re: [Haskell-cafe] Is Haskell a Fanatic?

2009-12-04 Thread gladstein
I thought we were supposed to be civil on this list? ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] Re: Simple quirk in behavior of `mod`

2009-07-22 Thread gladstein
Is the utility of having (n `mod` 0) return a value greater than the confusion it will engender? In the 99.99% case it's an error. You wouldn't want (n `div` 0) to return 0, I expect.If we want these number-theoretic mod and div operations let's please put them in a separate module. ___

[Haskell-cafe] Using unsafePerformIO safely

2009-06-25 Thread gladstein
Regarding how to make the show instructions cause printout as soon as they are executed: If you write your interpreter to return a list of printout lines (strings), you get this behavior for free. Haskell's laziness enables the printing to start right away, while in an imperative language the list