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