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
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.
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
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
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
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
>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
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
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
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
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 = (
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
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.
___
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
14 matches
Mail list logo