Re: Confused about typing in ghci

2008-04-02 Thread Matthew Danish
that "g = ..." has nothing but space in between the "g" and the "=". No parameters syntactically. > Any thoughts on the other question about where I can go to understand > Haskell's precedence/associativity rules better (and avoid so many > parens

Re: Confused about typing in ghci

2008-04-02 Thread Matthew Danish
a big deal, because of pure code, so some people prefer to turn the restriction off. Your options are to turn it off, always write syntactic parameters like "g x = ...", or provide an explicit polymorphic type signature like "g :: Num a => a -> a". -- -- Matthew Danish -- use

Re: hs-plugins -- simple example fails

2008-02-22 Thread Matthew Danish
On Fri, Feb 22, 2008 at 02:39:36PM +, Peter Collingbourne wrote: > This could be caused by: >* Loading two different object files which export the same symbol ^ I think this is the cause. Try factoring out "Interface" into its own module. -- -- Matthew Danish --

Re: Can't seem to figure how to compile

2007-10-21 Thread Matthew Danish
On Sun, Oct 21, 2007 at 01:46:16PM -0500, John Vogel wrote: > gcc: installation problem, cannot exec `as': No such file or directory `as' is the assembler that gcc uses. Check your gcc. Can you even compile C programs successfully? -- -- Matthew Danish -- user: mrd domain: cmu.e

Re: is -fno-monomorphism-restriction evil?

2007-10-09 Thread Matthew Danish
even. As for portability, you can now use: {-# LANGUAGE NoMonomorphismRestriction #-} at the top of your file. This should be more "portable" than a ghc-specific compiler option. See the GHC manual section on pragmas for the full details.

Re: ghc 6.6 Debian packages

2007-07-05 Thread Matthew Danish
sking them to run the command: apt-get install libghc6-fgl-dev libghc6-haskell-src-dev libghc6-html-dev libghc6-hunit-dev libghc6-mtl-dev libghc6-network-dev libghc6-quickcheck-dev which installs everything and doesn't saddle them with a ton of unnecessary other files? -- -- Matthew Danis

Re: 64-bit windows version?

2007-06-24 Thread Matthew Danish
hey are all ordinary Windows installers (NSIS I think). This installs your system in the "approved" manner, so it should be easy to later grab individual updates and simply unpack them into here. That should take care of your non-Haskell related packages. -- -- Matthew Danish -- user: mrd

Re: 64-bit windows version?

2007-06-22 Thread Matthew Danish
it, and click Next a few times. -- -- Matthew Danish -- user: mrd domain: cmu.edu -- OpenPGP public key: C24B6010 on keyring.debian.org ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Seemingly subtle change causes large performance variation

2007-06-07 Thread Matthew Danish
r/ghc-inplace --make -O2 intest_slow.hs [1 of 1] Compiling Main ( intest_slow.hs, intest_slow.o ) Linking intest_slow ... $ time ./intest +RTS -tstderr -RTS < test1 ./intest +RTS -tstderr 8830 <> real0m0.129s user0m0.124s sys 0m0.006s $ time ./intest_slow +RTS -tstderr

Re: GHC as a library - getting output from GHCI

2007-05-10 Thread Matthew Danish
to open file/socket handles, and a quick browse of GHC/Handle.hs doesn't seem to indicate anything else. I'm not counting createPipe/fdToHandle because that is not portable. -- -- Matthew Danish -- user: mrd domain: cmu.edu -- OpenPGP public key: C24B6010 on keyring.debian.org

Re: GHC as a library - getting output from GHCI

2007-05-09 Thread Matthew Danish
up stdOutput > (rd, wr) <- createPipe > dupTo wr stdOutput > v <- action > h <- fdToHandle rd > closeFd wr > s <- hGetContents h > return (v, s) > `finally` do > dupTo oldStdOutput stdOutput > closeFd oldStdOutput Unfortuna

Re: GHC as a library - getting output from GHCI

2007-05-09 Thread Matthew Danish
andles, or returns Strings. I am unfamiliar with that module however. -- -- Matthew Danish -- user: mrd domain: cmu.edu -- OpenPGP public key: C24B6010 on keyring.debian.org ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Re: GHC's error messages are too verbose?

2007-04-14 Thread Matthew Danish
f terminology a typical newbie might not understand yet, also, the suggested resolution is well off the mark. I'm not saying that the error messages should be dumbed down necessarily, but that the beginner's perspective may be worth considering. -- -- Matthew Danish -- user: mrd doma

Re: scripts on unix

2007-03-14 Thread Matthew Danish
On Wed, Mar 14, 2007 at 07:31:55PM +, Frederik Eaton wrote: > Hello, > > What is the proper technique for creating a Haskell script on a Unix > system? File.lhs: #!/usr/bin/env runhaskell \begin{code} ... \end{code} With a literate code file, the #! should cause no issues. --