On Nov 7, 2007 6:14 AM, Cale Gibbard <[EMAIL PROTECTED]> wrote:
> On 06/11/2007, Tim Docker <[EMAIL PROTECTED]> wrote:
> > I can confirm that ghc-6.8.1 builds from source completely without fuss
> > on the latest ubuntu (7.10).
> >
> > (... though it took a couple of hours of cpu time :-)
> >
> > T
On 06/11/2007, Tim Docker <[EMAIL PROTECTED]> wrote:
> I can confirm that ghc-6.8.1 builds from source completely without fuss
> on the latest ubuntu (7.10).
>
> (... though it took a couple of hours of cpu time :-)
>
> Tim
I can confirm that the generic x86 binary package for 6.8.1 works on
Ubunt
It looks as if hoogle isn't working. I get 404s whenever I try to do any
search on hoogle.
Mike
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
On 6 Nov 2007, at 3:56 PM, Yitzchak Gale wrote:
I wrote:
There is still a problem here - my code (and also
all of the previous posters, I think) clobbers the random
generator, rendering it unusable for future calculations.
In this case that is probably not a problem, but it
is a bad habit to g
What about using hGetContents to just read ALL of the input, as a lazy
string? Then you look through that string for success or failure. In
other words,
readACL2Answer pout = do
s <- hGetContents pout
parse s here
___
Haskell-Cafe mailing list
Hi all,
I'm writing some code to interact with an ACL2 [0] process. I'd like
to be able to write a function
test :: String -> IO Bool
that will attempt to prove something by forking an ACL2 process and
screen scraping its output, to see whether the conjecture was proved.
The code below [1]
Symptoms:
You build 6.8.1 from source on Leopard (x86 in my case) and then
junior:ghc-6.8.1 joelr$ ghci
GHCi, version 6.8.1: http://www.haskell.org/ghc/ :? for help
ghc-6.8.1:
/usr/local/lib/ghc-6.8.1/lib/base-3.0.0.0/HSbase-3.0.0.0.o: unknown
symbol `_environ'
Loading package base ... linkin
G'day all.
Quoting [EMAIL PROTECTED]:
There is one solution missing there (unless I skipped it) fib
n=((1+s)/2)^n-((1-s)/2)^n)/s where s=sqrt 5 If some of you complain
that this is real, not integer, please remember that
Leonardo of Pisa thought of applying this to rabbits. Well, rabbits are
no
On Nov 6, 2007, at 6:57 PM, Wolfgang Thaller wrote:
That is not exactly what we want, I think. Currently, HOC parses
things file-by-file, so we do NOT want to follow #include
directives. We might just process the line pragmas from CPP to keep
track of where things came from, OTOH.
You _d
I wrote:
>> There is still a problem here - my code (and also
>> all of the previous posters, I think) clobbers the random
>> generator, rendering it unusable for future calculations.
>> In this case that is probably not a problem, but it
>> is a bad habit to get into, and not very polite.
Jonatha
lrpalmer:
> On Nov 5, 2007 8:11 PM, Alex Young <[EMAIL PROTECTED]> wrote:
> > {--}
> > module Main where
> >
> > import Random
> > import System.Environment
> > import List
> > import Monad
> >
> > randMax = 32767
> > unitRadius = randMax * randMax
>
On Nov 5, 2007 8:11 PM, Alex Young <[EMAIL PROTECTED]> wrote:
> {--}
> module Main where
>
> import Random
> import System.Environment
> import List
> import Monad
>
> randMax = 32767
> unitRadius = randMax * randMax
>
> rand :: IO Int
> rand = getStd
Hi Alex,
> I think I would have avoided most of the problems
> in the first place. I'm finding the documentation
> to be rather undiscoverable at the moment, but I'm
> sure it's just a question of learning my way around it.
Make sure to keep
http://haskell.org/ghc/docs/latest/html/libraries/
on
I can confirm that ghc-6.8.1 builds from source completely without fuss
on the latest ubuntu (7.10).
(... though it took a couple of hours of cpu time :-)
Tim
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Seth Gordon
Sent: Wednesday, 7 November 2007 7:
Seth Gordon wrote:
> Peter Verswyvelen wrote:
> > Each year I give Linux a try. And usually I kick it off my harddrive
> > after a month, and stick to Windows. However, it does get better each
> > year, so
> >
> >
> >
> > So which kind Linux works best for running GHC (6.8.1) and related
>
On Nov 6, 2007 5:10 PM, Tim Clark <[EMAIL PROTECTED]> wrote:
> Has anyone got GHC 6.8.1 building on Leopard? Unfortunately macports
> isn't even letting me build GHC 6.6.1 since the bootstrap GHC isn't
> working. Does anyone have any ideas or am I just too impatient?
Oh, right... that thread is in
Has anyone got GHC 6.8.1 building on Leopard? Unfortunately macports
isn't even letting me build GHC 6.6.1 since the bootstrap GHC isn't
working. Does anyone have any ideas or am I just too impatient?
Thanks,
Tim Clark
___
Haskell-Cafe mailing list
Hask
On 11/6/07, Maurício <[EMAIL PROTECTED]> wrote:
>
> Maybe (and only maybe), before choosing a
> distribution, you should choose a package system,
> since that's what you are going to use to install
> software. Look for RPM and APT, and see what you
> think. With my package system (I don't wanna gi
Hello Peter,
Tuesday, November 6, 2007, 10:04:02 PM, you wrote:
> So which kind Linux works best for running GHC (6.8.1) and related
> tools? (I want to give Yi a go, I can▓t get it to work on Windows). Debian?
> Fedora? Ubuntu?
you are not too original - i've asked exactly the same question exa
Hello Andrew,
Tuesday, November 6, 2007, 10:55:58 PM, you wrote:
>> for me, abstraction is anything that i want to be an abstraction. i
>> just write code in the close-to-natural language and it becomes
>> Haskell program when appropriate syntax applied.
> Well, in my experience, figuring out ju
Hallo,
Maurício escreveu:
>
> Maybe (and only maybe), before choosing a
> distribution, you should choose a package system,
> since that's what you are going to use to install
> software. Look for RPM and APT, and see what you
> think. With my package system (I don't wanna give
> you any prejudi
> Each year I give Linux a try. (...)
>
> So which kind Linux works best for running GHC
> (6.8.1) and related tools? (I want to give Yi a
> go, I can’t get it to work on Windows).
> Debian? Fedora? Ubuntu? (...)
>
>
Maybe (and only maybe), before choosing a
distribution, you should choose a pack
On Nov 6, 2007 3:29 PM, Graham Fawcett <[EMAIL PROTECTED]> wrote:
> On Nov 6, 2007 2:21 PM, Jeff Polakow <[EMAIL PROTECTED]> wrote:
> > Have you tried using -fglasgow-exts? That should enable all ghc
> > extensions.
If anyone's interested, I had best results when I added the flag
-fallow-incoher
On 11/6/07, Seth Gordon <[EMAIL PROTECTED]> wrote:
> I strongly suspect that if you got hold of 6.8.1
> packages that were built for Debian, they would also install on Ubuntu,
> but I haven't tried doing that yet.
IME, this is very tricky to do right, even if the dependencies are the
same (e.g. li
>> Actually, what I want is to select a region of
>> text from emacs and get back the result of that
>> evaluated as haskell code. So, I need something
>> that is fast to type
>
> M-| xargs ghc -e
>
> almost works - but ghc -e evaluates only a single argument, so you
> need to enclose the region w
Peter Verswyvelen wrote:
Each year I give Linux a try. And usually I kick it off my harddrive
after a month, and stick to Windows. However, it does get better each
year, so…
So which kind Linux works best for running GHC (6.8.1) and related
tools? (I want to give Yi a go, I can’t get it to
On Nov 6, 2007 2:21 PM, Jeff Polakow <[EMAIL PROTECTED]> wrote:
> Have you tried using -fglasgow-exts? That should enable all ghc
> extensions.
Ah thanks, that does it.
G
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mai
Don Stewart wrote:
andrewcoppin:
Somebody correct me here - I was under the impression that you only ever
need forkIO if you're doing something strange with FFI, and usually you
just want fork?
That's incorrect. forkIO is *the* basic threading primitive for fast,
light Haskell threa
Bulat Ziganshin wrote:
Hello Andrew,
Tuesday, November 6, 2007, 9:34:34 PM, you wrote:
It used to be easier with OOP. I'm still not quite sure how to pick the
best possible abstractions in an FP context...
for me, abstraction is anything that i want to be an abstraction. i
just write
On Tue, 2007-11-06 at 10:32 +1030, Levi Stephen wrote:
> Hi,
>
> I'm was wondering how most people work during when designing a functional
> program. Do you create data structures/types first? Do you work from some
> type
> signatures?
As others have mentioned: both. But there's a third thing
Hello Andrew,
Tuesday, November 6, 2007, 9:34:34 PM, you wrote:
> It used to be easier with OOP. I'm still not quite sure how to pick the
> best possible abstractions in an FP context...
for me, abstraction is anything that i want to be an abstraction. i
just write code in the close-to-natural l
Hello,
Have you tried using -fglasgow-exts? That should enable all ghc
extensions.
-Jeff
[EMAIL PROTECTED] wrote on 11/06/2007 02:02:11 PM:
> On Nov 6, 2007 12:15 PM, David Benbennick <[EMAIL PROTECTED]> wrote:
> > In ghc 6.8.1, the error messages are more helpful:
> >
> > foo.hs:5:0:
> >
> For a stupid question, it has certainly started many a flame war and
> heated argument, and people still disagree greatly on it, so I would
The French say "Le goût et les couleurs, ça ne se discute as". I guess the same
goes for operating systems...
> not consider it such. The next question y
On 11/6/07, Peter Verswyvelen <[EMAIL PROTECTED]> wrote:
> So which kind Linux works best for running GHC (6.8.1) and related tools? (I
> want to give Yi a go, I can't get it to work on Windows). Debian? Fedora?
> Ubuntu?
I took an informal poll at this year's Haskell Hackathon, and well
over hal
Am Dienstag, 6. November 2007 schrieb Andrew Coppin:
>
> Somebody correct me here - I was under the impression that you only ever
> need forkIO if you're doing something strange with FFI, and usually you
> just want fork?
You're probably thinking of forkOS vs. forkIO.
AFAIK there is no fork in Has
On Nov 6, 2007 2:04 PM, Peter Verswyvelen <[EMAIL PROTECTED]> wrote:
>
>
>
>
> Each year I give Linux a try. And usually I kick it off my harddrive after a
> month, and stick to Windows. However, it does get better each year, so…
I have not used Windows since 98, but I am going to make the bigoted
I would like to load 32-bit images (RGB+alpha) for use with GLUT/OpenGL.
I know GTK2HS has support for loading images, but does a standalone Haskell
(wrapper) module exists for loading images?
PNG or TGA would be enough for me.
Yes, I could of course just use the GTK2HS OpenGL widget s
On Nov 6, 2007 12:03 PM, Thomas Schilling <[EMAIL PROTECTED]> wrote:
> On Tue, 2007-11-06 at 09:18 -0500, Graham Fawcett wrote:
> > Hi folks,
> > Is there a way to declare a 'toString' function, such that
> > toString x | = x
> > toString x | = show x
> I think the simpler solution (for your part
Each year I give Linux a try. And usually I kick it off my harddrive after a
month, and stick to Windows. However, it does get better each year, so.
So which kind Linux works best for running GHC (6.8.1) and related tools? (I
want to give Yi a go, I can't get it to work on Windows). Debian? Fe
On Nov 6, 2007 12:15 PM, David Benbennick <[EMAIL PROTECTED]> wrote:
> In ghc 6.8.1, the error messages are more helpful:
>
> foo.hs:5:0:
> Illegal instance declaration for `MyShow String'
> (All instance types must be of the form (T t1 ... tn)
> where T is not a synonym.
>
On 6-Nov-07, at 5:00 PM, Joel Reymont wrote:
It seems that the current approach taken by HOC is to strip
preprocessing directives.
True. Additionally, some of those strange macros are just interpreted
as language keywords by the parser.
I'm trying to figure out the easiest way to run CPP
andrewcoppin:
> Tim Docker wrote:
> >Is it possible to use the forkIO primitive to cause pure computations
> >to be evaluated in parallel threads?
> >
>
> Somebody correct me here - I was under the impression that you only ever
> need forkIO if you're doing something strange with FFI, and usual
Levi Stephen wrote:
Hi,
I'm was wondering how most people work during when designing a
functional program. Do you create data structures/types first? Do you
work from some type signatures?
In *any* programming language, my workflow usually goes like this:
1. Think about it for a minute or t
Tim Docker wrote:
Is it possible to use the forkIO primitive to cause pure computations
to be evaluated in parallel threads?
Somebody correct me here - I was under the impression that you only ever
need forkIO if you're doing something strange with FFI, and usually you
just want fork?
__
> Is there a CPP written in Haskell and packaged as a library?
Yes, cpphs, which can be used either as a stand-alone tool or as a
library.
http://haskell.org/cpphs
Regards,
Malcolm
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://w
On Tue, 2007-11-06 at 09:18 -0500, Graham Fawcett wrote:
> Hi folks,
>
> Is there a way to declare a 'toString' function, such that
>
> toString x | = x
> toString x | = show x
>
> Perhaps, in the type system, there's a way to declare a ToString
> class, and somehow "inherit" all instances of
> I'm assuming you're not fond of the way the print function handles
> Strings?
>
> With GHC you can do this:
>
> > {-# OPTIONS -fallow-overlapping-instances #-}
> > {-# OPTIONS -fallow-undecidable-instances #-}
> >
> > class Show a => MyShow a where show_ :: a -> String
> > instance MyShow String
If you don't use the foreign function interface I think that you only need
the -L option:
ghc --make -L/usr/local/lib/ghc-6.8.1/gmp -O2 -o edimail Main.hs
Something similar worked for me, but this new behavior is not very reasonable.
Could it be a bug?
On Tuesday 06 November 2007 17:47, david4
On 11/6/07, Graham Fawcett <[EMAIL PROTECTED]> wrote:
> ToString.hs:5:0:
> Illegal instance declaration for `MyShow String'
> (The instance type must be of form (T a b c)
> where T is not a synonym, and a,b,c are distinct type variables)
> In the instance declaration for `M
On 11/6/07, david48 <[EMAIL PROTECTED]> wrote:
well I'm not sure where to use the -I/path/to/ghc... so I tried this :
$ cd /usr/local/lib/ghc-6.8.1
$ sudo cp -R /home/david/Desktop/ghc-6.8.1/gmp .
$ ghc --make -I/usr/local/lib/ghc-6.8.1/gmp -O2 -o edimail Main.hs
Linking edimail ...
/usr/bin/ld:
On 11/6/07, Alberto Ruiz <[EMAIL PROTECTED]> wrote:
> I have the same problem. And gmp.h is also not found when using the FFI. I
> must add:
> cc-options: -I/path/to/ghc-6.8.1/gmp
unfortunately :
$ find /usr/local/lib/ghc-6.8.1 -name *gmp* -ls
$
ghc was installed this way :
$ tar xvfj g
On Nov 6, 2007 10:30 AM, Bayley, Alistair
<[EMAIL PROTECTED]> wrote:
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of Graham Fawcett
> > Is there a way to declare a 'toString' function, such that
> > toString x | = x
> > toString x | = show x
> I'm assuming you're not fond o
On 6 Nov 2007, at 6:00 AM, Yitzchak Gale wrote:
There is still a problem here - my code (and also
all of the previous posters, I think) clobbers the random
generator, rendering it unusable for future calculations.
In this case that is probably not a problem, but it
is a bad habit to get into, a
It seems that the current approach taken by HOC is to strip
preprocessing directives. This may not have been a problem before
Leopard but Cocoa header files are now full of macros in most unusual
places, e.g.
@interface NSObject (NSDeprecatedMethods)
+ (void)poseAsClass:(Class)aClass
DEP
Levi Stephen wrote:
Hi,
I'm was wondering how most people work during when designing a
functional program. Do you create data structures/types first? Do you
work from some type signatures?
For example, take a blog. Is the first step likely to be something like:
data BlogEntry = BlogEntry {
I have the same problem. And gmp.h is also not found when using the FFI. I
must add:
cc-options: -I/path/to/ghc-6.8.1/gmp
On Tuesday 06 November 2007 16:07, david48 wrote:
> This is a program that works under ghci.
> GHC was installed using the tarball on hashell.org.
> When I try to com
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Graham Fawcett
>
> Is there a way to declare a 'toString' function, such that
>
> toString x | = x
> toString x | = show x
>
> Perhaps, in the type system, there's a way to declare a ToString
> class, and somehow "inherit" all
This is a program that works under ghci.
GHC was installed using the tarball on hashell.org.
When I try to compile the program, it can't link. It used to work with 6.6.1.
ghc --version
The Glorious Glasgow Haskell Compilation System, version 6.8.1
ghc --make -O2 -o edimail Main.hs
[1 of 5] Compil
Thanks. I have been wondering if there is a Haskell interface to Octave
and maybe to Scilab.
Steve
-Original Message-
From: Henning Thielemann [mailto:[EMAIL PROTECTED]
> I am looking for a Haskell module that will do multivariate linear
> regression. Does someone know which module will
Hi folks,
Is there a way to declare a 'toString' function, such that
toString x | = x
toString x | = show x
Perhaps, in the type system, there's a way to declare a ToString
class, and somehow "inherit" all instances of Show as ToString
instances?
Thanks,
Graham
___
Hi Alex,
You wrote:
> I'm new to Haskell, and don't quite understand how IO and lazy
> evaluation work together yet. In order to improve my understanding, I
> thought I'd try to knock together a translation of a fairly simple
> problem I can code up in C...
> Now, I have two questions. The easy
On Tue, 6 Nov 2007, marnes wrote:
>
> fib :: Integer -> Integer
> fib n = fibaux n 0 1 1
>where
> fibaux :: Integer -> Integer -> Integer -> Integer -> Integer
> fibaux i a b c | i==0 = a
>| i/=0 = fibaux (i-1) b c (b+c)
http://www.haskell.org/haskellwiki/Memo
On Mon, 5 Nov 2007, C.M.Brown wrote:
> I was given a quandary this evening, suppose I have the following code:
Did you already try Prelude's 'asTypeOf' function?
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/list
On Mon, 5 Nov 2007, Andrew Coppin wrote:
> randList :: Int -> IO [Int]
> randList n = mapM (\x -> randomRIO (0, randMax)) [1..n]
replicateM n (randomRIO (0, randMax))
but it is certainly better to use randomR and wrap it in a State monad
___
Haske
On Mon, 5 Nov 2007, Lihn, Steve wrote:
> I am looking for a Haskell module that will do multivariate linear
> regression. Does someone know which module will do it? That is, the
> equivalent of Perl's Statistics::Regression.pm.
>
> http://search.cpan.org/~itub/PerlMol-0.35_00.ppm/lib/Statistics/R
Hello,
I'm currently looking into web application programming with Haskell.
Though I am aware of HAppS, a lighttpd/fastcgi based approach is what
I'm currently considering.
It seems rather straightforward to implement a session manager, that
would maintian some server side state which is passed to
66 matches
Mail list logo