On Thu, 2007-06-14 at 22:50 -0700, Stefan O'Rear wrote:
| unsafeLiftIO :: (Buffer - IO Buffer) - Builder
| unsafeLiftIO f = Builder $ \ k buf - inlinePerformIO $ do
| buf' - f buf
| return (k buf')
which might be safe, since 'f buf' cannot float out of the lambda which
On Fri, 2007-06-15 at 23:15 +0200, [EMAIL PROTECTED] wrote:
I'm learning Haskell using Paul Hudak's book SOE.
I'm using GHC 6.6 under Windows XP.
GHC on Windows does not seem to come with HGL (is this correct?), so I used
Gtk2HS, which contains a SOE implementation.
I noticed that most
On Fri, 2007-06-15 at 01:03 +0200, Udo Stenzel wrote:
Greetings,
I was trying to understand the magic inside Data.Binary, and found two
somewhat suspicious uses of inlinePerformIO, which imho has a far too
innocuous name:
It's not really supposed to be a public api. We've decided to rename
On Mon, 2007-06-04 at 09:43 +0100, Alistair Bayley wrote:
After some expriments with the simplifier, I think I have a portable
version of a direct-from-buffer decoder which seems to perform nearly
as well as one written directly against GHC primitive unboxed functions.
I'm wondering if
On Mon, 2007-06-04 at 13:12 +0100, Alistair Bayley wrote:
BTW, what's the difference between the indexXxxxOffAddr# and
readXxxxOffAddr# functions in GHC.Prim?
Right. So it'd only be safe to use the index ones on immutable arrays
because there's no way to enforce sequencing with
On Thu, 2007-05-31 at 13:48 +0200, Christian Maeder wrote:
How about switching from sed to perl, then?
/me runs away screaming
Actually the easier fix was to not look for an optional qualified
string (ie dropping the \(qualified \)* clause) as it turns out we
didn't need it anyway.
Duncan
On Mon, 2007-05-28 at 20:35 +0100, Neil Mitchell wrote:
Hi Duncan,
list the support files in the data-files: stanza in the .cabal file.
Then import the Paths_pkg module that Cabal generates for you. It
exports a few functions including:
getDataDir :: IO FilePath
A few questions:
On Wed, 2007-05-23 at 21:42 -0700, lebed wrote:
Hi, haskell-caffe!
I'm trying to build Gtk2Hs 0.9.11 under GHC 6.6.1 on Solaris 10 x86:
./mk/chsDepend -iglib:gtk:sourceview
sourceview/Graphics/UI/Gtk/SourceView/Types.chs
could not find {#import.chs on search path glib gtk sourceview
On Wed, 2007-05-30 at 16:09 -0700, Bryan O'Sullivan wrote:
Jon Harrop wrote:
Where should I go to get started with OpenGL and Haskell?
Take a look at Gtk2Hs, which has OpenGL bindings.
For example, see http://darcs.haskell.org/gtk2hs/demo/opengl/
The Gtk2Hs OpenGL stuff is only a
On Sun, 2007-05-27 at 14:36 +0100, Neil Mitchell wrote:
Hi,
I'm wanting to release a Haskell program, but am confused how I should
distribute the associated files it needs. On Windows I would use the
functions to find the path of the executable, and find the support
files relative to that -
On Mon, 2007-05-28 at 10:49 +0100, Andrew Coppin wrote:
Simon Peyton-Jones wrote:
| It's too large and complicated to use for small things. E.g., if you
| want to just dash off a little something that needs to evaluate an
| expression... Well, you can use the GHC API. But this is highly
|
On Wed, 2007-05-23 at 10:45 +0100, Alistair Bayley wrote:
Hello cafe,
D'ya fancy an optimisation exercise?
In Takusen we currently marshal UTF8-encoded CStrings by first turning the
CString into [word8], and then running this through a [Word8] - String
UTF8 decoder. We thought it would be
On Tue, 2007-05-22 at 14:40 +0100, Claus Reinke wrote:
so the situation for mailing lists and online docs seems to have
improved, but there is still the wiki indexing/rogue bot issue,
and lots of fine tuning (together with watching the logs to spot
any issues arising out of relaxing those
On Tue, 2007-05-22 at 16:26 +0200, Henning Thielemann wrote:
On Tue, 22 May 2007, Duncan Coutts wrote:
So if we can ban bots from the page histories or turn them off for the
bot user agents or something then we might have a cure. Perhaps we just
need to upgrade our media wiki software
Just in case anyone was wondering how to do this with the other major
Haskell GUI lib Gtk2Hs...
./configure --enable-profiling
some day when Gtk2Hs is cabalised it'll be even easier.
Duncan
On Sun, 2007-05-20 at 17:39 +0200, Anthony Chaumas-Pellet wrote:
Hello,
I'm currently hacking away a
On Fri, 2007-05-11 at 10:04 +0200, Dirk Kleeblatt wrote:
Hi everybody,
we're pleased to announce the first release of Harpy.
Harpy is a library for run-time code generation of x86 machine code.
It provides not only a low level interface to code generation
operations, but also a convenient
On Fri, 2007-05-11 at 12:10 +0100, Andrew Coppin wrote:
Suppose I have you the source code to some arbitrary function that takes
a list and returns another list.
It is possible to determine whether the function always examins the
entire input list?
Presumably you mean in the case that you
On Fri, 2007-05-11 at 08:58 -0700, Justin Bailey wrote:
On 5/11/07, Dirk Kleeblatt [EMAIL PROTECTED] wrote:
Hi everybody,
we're pleased to announce the first release of Harpy.
Harpy is a library for run-time code generation of x86 machine
On Wed, 2007-05-09 at 09:08 -0700, Jason Morton wrote:
I'd love to understand these rewrite-rules a little better; could
anyone point me to where (if?) they are documented?
Here's a list of papers on fusion and deforestation:
On Mon, 2007-05-07 at 21:50 +0100, David House wrote:
On 07/05/07, Andrew Coppin [EMAIL PROTECTED] wrote:
(Anybody know what the difference between GHC.Prim.Double#
and GHC.Float.Double is?)
It's the difference between unboxed and boxed types. A boxed type's
representation is in fact a
On Sat, 2007-05-05 at 17:18 +0100, David House wrote:
Hey there,
I'm getting the following errors when I try to compile hsGnuTls [1]:
~/hs/sandbox/hsgnutls $ c2hs --version
C-Haskell Compiler, version 0.14.5 Travelling Lightly, 12 Dec 2005
build platform is i486-pc-linux-gnu 1, True,
On Fri, 2007-05-04 at 22:23 -0700, SevenThunders wrote:
Prelude System.Info [os, arch]
[darwin,powerpc]
Thank you for your help. I somehow missed that when I was browsing through
the library documentation.
On windows, interestingly the os function returns mingw
Yes, that's one of Neil's
On Fri, 2007-05-04 at 15:01 +0100, Frederik Eaton wrote:
Is it possible to use Language.Haskell to print a program with
comments preserved? That might be useful for refactoring.
Not that Language.Haskell isn't already cool enough, if the answer is
no, of course.
The answer is no, but take a
On Thu, 2007-05-03 at 16:49 +0200, Thomas Schilling wrote:
By dependencies I
meant, library packages that GHC knows about.
For example, if I load something simple like
import System.Posix.Files
main = touchFile example
into GHCi and execute :main it prints
Loading package
On Wed, 2007-05-02 at 09:59 +0100, Claus Reinke wrote:
The FileManip package provides expressive functions and combinators for
searching, matching, and manipulating files.
hi Brian,
i'm a fan of find | xargs, so a portable haskell replacement unencumbered
by viral licenses would be
On Wed, 2007-05-02 at 12:00 +0100, Claus Reinke wrote:
i'm a fan of find | xargs, so a portable haskell replacement unencumbered
by viral licenses would be very welcome. i have no intention to participate
in yet-another-licencing-discussion, i would just like to ask whether
those
On Tue, 2007-05-01 at 09:34 +0100, Magnus Therning wrote:
I'm trying to create a single cabal file containing specs for both a
library and an executable using that library. I'm not having much luck
though :(
This is what I have so far:
name: foo
version: 0.1
exposed-modules:
On Tue, 2007-05-01 at 20:37 +0100, Neil Mitchell wrote:
Hi,
I like to develop on Hugs, because its a nice platform to work with,
and provides WinHugs, auto-reloading, sub-second compilation etc.
Unfortunately some of the newer libraries (ByteString/Binary in
particular) have been optimised
On Tue, 2007-05-01 at 22:29 +0100, Magnus Therning wrote:
So if foo.hs is in test-src and Foo/Bar.hs is in src then I think you
just need:
hs-source-dirs: test-src, src
No, that's not enough, I also have to add the following lines to make
the executable compile and link:
extensions:
On Sun, 2007-04-22 at 12:55 -0400, Pete Kazmier wrote:
After reading Bryan's post, I switched my right fold to a strict left
fold and almost tripled my original speed. Could someone provide some
guidelines on when to use each? I thought foldr should be used when
building some large data
On Sat, 2007-04-21 at 12:04 +0200, Josef Svenningsson wrote:
Unfortunately the niche is not empty. There is an ocaml library called
cil which is supposed to be pretty sweet for manipulating C code. But
I still think a Haskell library would be a very good idea, and perhaps
one can look at cil
Hi all,
If anyone is interested in developing a Language.C library, I've just
completed a full C parser which we're using in c2hs.
It covers all of C99 and all of the GNU C extensions that I have found
used in practise, including the __attribute__ annotations. It can
successfully parse the whole
On Wed, 2007-04-18 at 21:12 -0700, David Roundy wrote:
On Thu, Apr 19, 2007 at 10:20:21AM +1000, Duncan Coutts wrote:
and people will for ever be defining newtype wrappers or complaining
that the whole library isn't parametrised by the endianness or whatever.
For existing formats you need
On Thu, 2007-04-19 at 12:23 +0100, Jules Bean wrote:
Duncan Coutts wrote:
Yeah, we've concentrated so far on the serialisation of Haskell values,
not reading/writing externally defined binary formats. I don't think
we've been especially clear on that. But we do intend to tackle both
On Wed, 2007-04-18 at 16:17 +0300, Benja Fallenstein wrote:
Hi all,
Is there a way to achieve the effect of soft references in GHC? Or if
not, is there any hope that they will be implemented in the future?
(Soft references are like weak references, except that they are only
reclaimed by the
That was beautiful, thanks. :-)
On Wed, 2007-04-18 at 12:45 -0700, Dan Weston wrote:
Simon (aka Dumbledore) is speaking to four different Houses: scientists
(Ravenclaw), engineers (Hufflepuff), entrepreneurs (Slytherin), and
managers (Griffindor). My advice to him is:
On Wed, 2007-04-18 at 08:30 -0700, David Roundy wrote:
On Wed, Apr 18, 2007 at 12:34:58PM +1000, Duncan Coutts wrote:
We can't actually guarantee that we have any IEEE format types
available. The isIEEE will tell you if a particular type is indeed IEEE
but what do we do if isIEEE CDouble
On Wed, 2007-04-18 at 08:34 -0700, Bryan O'Sullivan wrote:
Duncan Coutts wrote:
I'm currently exploring more design ideas for Data.Binary including how
to deal with alignment. Eliminating unnecessary bounds checks and using
aligned memory operations also significantly improves performance
On Tue, 2007-04-17 at 10:32 -0700, David Roundy wrote:
Hi all,
I'm wondering what exactly inspired the decode/encodeFloat implementation
for Data.Binary? It seems to me like it'd be much better to use a standard
format like IEEE, which would also be much more efficient, since as far as
I
On Mon, 2007-04-16 at 10:08 +, Arthur van Leeuwen wrote:
Goody! UU.PPrint is now on hackage! Regrettably, this does seem like
a bit of a waste of time, as UU.PPrint was already cabalised as part
of the Haskell Utrecht Tools at http://www.cs.uu.nl/wiki/HUT/
which also contains the parser
On Thu, 2007-04-12 at 23:38 -0700, SevenThunders wrote:
I saw a lot of options for places to put sources and targets, but I couldn't
quite figure out how to configure it to place the object file output. No
doubt
it's there, I just couldn't find it in the 45 min.s or so that I looked for
On Thu, 2007-04-12 at 16:02 +1000, Ruben Zilibowitz wrote:
I can't even check out the darcs version from the repository because
that gives me an error (on applying patch 107/256 from memory). So I
am using the tarball for c2hs-0.14.5. Here is the problem:
Ah, the problem with case
On Thu, 2007-04-12 at 18:55 +1000, Ruben Zilibowitz wrote:
Ok I managed to check out a version from darcs. Now this is happening:
./Setup.hs build
Preprocessing executables for c2hs-0.14.6...
Setup.hs: c2hs/c/CLexer.x: no alex preprocessor available
The installation instructions don't
On Fri, 2007-04-13 at 02:37 +1000, Ruben Zilibowitz wrote:
Hi,
I've built and installed c2hs on my Mac OS X system now. I read
through the research paper on c2hs available on the website for c2hs
and decided I would need to try it out to learn it. But it gives me
errors which I am
On Thu, 2007-04-12 at 21:48 -0700, SevenThunders wrote:
I guess I am surprised that on linux, with all of it's amazing software
development tools, that Haskell export libraries would be this tricky to
develop.
I guess it's because most of the existing Haskell hackers are going the
other
On Thu, 2007-04-12 at 15:20 +1000, Ruben Zilibowitz wrote:
Hi,
I am having trouble building c2hs on Mac OS X. I noticed that
Darwinports has a port for this, but I'd like to install it without
using Darwinports because I already have ghc compiled and installed
on my system.
Does
On Sun, 2007-04-08 at 18:20 +0100, Dominic Steinitz wrote:
setup: Unrecognised flags: --disable-haddock-use-packages
make[1]: *** [.setup-config] Error 1
make[1]: Leaving directory `/home/dom/yi/yi/packages/yi-vty'
That's using a feature from the development version of cabal. I just
hacked
On Mon, 2007-04-09 at 14:40 -0400, Jefferson Heard wrote:
Thanks for the advice. I'm not so much interested in performance here,
as this is just a one-off. Disk thrashing or not, these files are only
a few hundred K apiece, and I can't imagine that the whole computation
will take more than a
On Mon, 2007-04-09 at 21:24 -0400, Jefferson Heard wrote:
It is indeed! Is that to be found in Control.Monad, I take it?
Yes. Other common derivatives in that module include:
mapM f as = sequence (map f as)
mapM_ f as = sequence_ (map f as)
forM_ = flip mapM_
forM = flip mapM
however,
On Fri, 2007-04-06 at 18:03 +0200, Michael Walter wrote:
Hi,
where would you get sourceview=0.9.11 for Win32?
You can build Gtk2Hs from source with the appropriate C libraries
installed or you can wait for me to do the same. It's on my TODO list
but probably will not get done for at least
On Sun, 2007-04-01 at 16:46 -0400, Paul Hudak wrote:
Here's a solution that I think is a bit more elegant.
-Paul
josephus n k =
let loop xs = let d:r = drop (k-1) xs
in d : loop (filter (/= d) r)
in take n (loop (cycle [1..n]))
Lovely.
.. must.. resist
On Sun, 2007-04-01 at 17:25 +0200, Thomas Schilling wrote:
On 31 mar 2007, at 04.09, Duncan Coutts wrote:
The ByteString libs was more-or-less the first high performance thing
that we wrote and we've learnt plenty more since then. I think
there's a
good deal more performance too eek
On Fri, 2007-03-30 at 14:24 -0700, Jeremy Shaw wrote:
Hello,
Did you compile with -O2 ? That makes a huge difference when using ByteString.
Hmm, I think we can do better than that. It would be nicer to have it
work fast without needing any -O flags at all in the user's module.
Lets look at
On Wed, 2007-03-28 at 20:44 +0200, Benjamin Franksen wrote:
But... you have the type of all functions nailed down in classes. Thus, even
if a change in the API means a lot of tedious work adapting the concrete
implementations, at least the compiler helps you to check that the
implementations
On Sat, 2007-03-24 at 11:53 +, Neil Mitchell wrote:
This is a highly non-academic concern. Many widely used libraries,
such as Parsec, operate only on lists and not the newer and more
efficient sequence types, such as bytestrings.
Lists in Haskell are the nicest data structure, they
On Fri, 2007-03-23 at 20:24 +0300, Thach Si Lam wrote:
I'm trying to write Bouncing Ball demo in Gtk2hs. But i coudn't find
timer class (like in wxhaskell demo) in Gtk2hs.
There is timeoutAdd:
http://haskell.org/gtk2hs/docs/gtk2hs-docs-0.9.10/System-Glib-MainLoop.html#v%3AtimeoutAdd
used
On Thu, 2007-03-22 at 14:04 +0530, Arun Suresh wrote:
I am currently working on a project where basically we do a lot of XML
validation and digestion. For example :
We recieve an XML document A, if the document passes schema
validation, we do some business level validations, then from A, we
On Mon, 2007-03-19 at 12:14 +0100, Maxime Henrion wrote:
I stepped onto your mail and found it particularly interesting since
I'm currently writing a chess client in Haskell, using GTK+, glade
and the nice Cairo library :-). It is called LambdaChess!
Cool! When you have something you want to
On Mon, 2007-03-19 at 14:27 +0100, Maxime Henrion wrote:
As for the portability of the my graphics code, I can just say it's
GTK+, using Glade XML files, Cairo and SVG on top of Cairo. All
of this is supposed to work fine on Windows, if that's what you
were asking. I'm not sure about OS X
On Sun, 2007-03-18 at 05:48 -0400, Isaac Dupree wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Compare the guarantees (in practice and/or theoretically) of
inlinePerformIO
and
unsafePerformIO . unsafeInterleaveIO (i.e. function composition)
(aside from inlinePerformIO being better
On Wed, 2007-03-14 at 09:56 +1100, Donald Bruce Stewart wrote:
magnus:
I'm trying to use c2hs but get stuck when including sys/types.h (though
the problem really resides in pthreadtypes.h):
% ./Setup.hs build -v
Preprocessing executables for kowasu-0.1...
/usr/bin/c2hs -C
On Tue, 2007-03-06 at 10:31 +0100, Udo Stenzel wrote:
Neil Mitchell wrote:
As others have said though, I wouldn't worry overly about it. The
whole concept of static linking being wrong, but dynamic linking being
fine, when you can flip between the modes just by changing compiler,
is just
On Tue, 2007-03-06 at 03:00 +, Neil Mitchell wrote:
The whole concept of static linking being wrong, but dynamic linking
being fine, when you can flip between the modes just by changing
compiler, is just silly. You don't infringe (or uninfringe) copyright
with a command line flag.
Just
On Mon, 2007-03-05 at 14:07 -0300, Alex Queiroz wrote:
Hallo,
Gtk2Hs and HDBC are both LGPL licensed, but aren't they always
static linked? Is there a way to use them in closed-source programs?
Well let me put it this way: I'm not going to sue you and I doubt any of
the other
On Sat, 2007-03-03 at 15:19 +, [EMAIL PROTECTED] wrote:
I just tried to make HSH 1.2 but it needs Cabal, which I
apparently don't have installed. I also don't have
runghc installed (referenced at cabal homepage). Using
ghc instead failed as follows:
Setup.lhs:2:
Failed to load
On Thu, 2007-03-01 at 00:22 +, Claus Reinke wrote:
The main example of course is ByteString fusion as presented in our recent
paper:
http://www.cse.unsw.edu.au/~dons/papers/CSL06.html
btw, why did you restrict yourself to improving [Char], rather than [a]?
We're not finished! :-)
It's
On Wed, 2007-02-28 at 09:51 -0800, Bryan O'Sullivan wrote:
Bulat Ziganshin wrote:
can you please provide examples of such code?
I'd recommend taking a look at the new binary package. It's very
cleanly written, and mostly easy to understand. It's also easy to see
where the
On Wed, 2007-02-28 at 16:38 +0300, Bulat Ziganshin wrote:
Hello Duncan,
Tuesday, February 27, 2007, 1:09:53 PM, you wrote:
can you please provide examples of such code? the ultimate goal is to
have tutorial on writing efficient code in high-level manner, but that
is too ambitious. just
On Tue, 2007-02-27 at 16:51 +, Claus Reinke wrote:
okay, profiling was not available for the Haskell version back then, but
using ML
profiling to improve a Haskell version sounds highly dangerous to me, even
more
so if the authors do not even mention any awareness of this danger. in
On Tue, 2007-02-13 at 22:43 -0500, Jefferson Heard wrote:
It was suggested that I might derive some performance benefit from using lazy
bytestrings in my tokenizer instead of regular strings. Here's the code that
I've tried. Note that I've hacked the basic wrapper code in the Lazy
On Tue, 2007-02-13 at 15:27 -0500, Jefferson Heard wrote:
Hi, I am running the following code against a 210 MB file in an attempt to
determine whether I should use alex or whether, since my needs are very
performance oriented, I should write a lexer of my own. I thought that
everything I'd
On Tue, 2007-02-13 at 15:12 -0600, Creighton Hogg wrote:
On 2/13/07, Duncan Coutts [EMAIL PROTECTED] wrote:
On Tue, 2007-02-13 at 15:27 -0500, Jefferson Heard wrote:
Hi, I am running the following code against a 210 MB file in
an attempt to
determine
On Sat, 2007-02-10 at 23:46 +1100, John Ky wrote:
Hi Duncan,
Thanks for your comments. In the context of a haskell process running
as a Windows service, a message box is useless, because Haskell
services do not have a GUI and cannot interact with the desktop.
Good point. Perhaps you can
On Sun, 2007-02-11 at 17:18 +, Neil Mitchell wrote:
Hi
Good point. Perhaps you can persuade the people who look after GHC on
win32 to have it use the Windows debug log service for exception
messages like that when there's no GUI available. Of course if you can
code up and submit
On Sat, 2007-02-10 at 09:32 +1100, John Ky wrote:
Hi,
I noticed on Windows that when I use IO functions that write to stdout
when the process is lacking a console, those functions throw an
IOError. I'm not sure if this also occurs for stderr because I
haven't tried it.
Some classes of
On Mon, 2007-02-05 at 19:26 -0800, Stefan O'Rear wrote:
I have a structure:
data Attr = Attr { fg :: !Color,
bg :: !Color,
bold :: !Bool,
blink :: !Bool,
rv :: !Bool,
halfBright :: !Bool,
On Fri, 2007-02-02 at 17:02 +0300, Bulat Ziganshin wrote:
Hello Chris,
Friday, February 2, 2007, 4:44:37 PM, you wrote:
If I have two identical STUArrays (same type and bounds) then what is the
most
efficient way to overwrite the data in the destination with the data in the
source?
On Thu, 2007-02-01 at 10:47 +0300, Bulat Ziganshin wrote:
Hello Duncan,
Thursday, February 1, 2007, 3:39:16 AM, you wrote:
Can anyone see a real serialisation use case that needs a monad for the
serialisation side? I'd thought I had an example, but I was wrong.
my program,
On Wed, 2007-01-31 at 14:38 +0300, Bulat Ziganshin wrote:
Hello Duncan,
Tuesday, January 30, 2007, 1:22:58 PM, you wrote:
Can anyone see a real serialisation use case that needs a monad for the
serialisation side? I'd thought I had an example, but I was wrong.
my program, FreeArc,
On Tue, 2007-01-30 at 09:38 +, Ross Paterson wrote:
On Tue, Jan 30, 2007 at 09:52:01AM +1100, Donald Bruce Stewart wrote:
ross:
why do you need a Put monad, which always seems to have
the argument type ()? Monoids really are underappreciated.
For the syntax, and So that people
On Mon, 2007-01-29 at 21:25 +0900, 向井 淳 wrote:
c2hs fails to process __extension__?
From the changelog, c2hs now can understand __extension.
Is this an exceptional case?
Did you try the very latest darcs version of c2hs? Yesterday I added a
couple patches that try to cope with more uses of
On Mon, 2007-01-29 at 22:26 +0900, 向井 淳 wrote:
On 2007/01/29, at 21:55, Duncan Coutts wrote:
Did you try the very latest darcs version of c2hs? Yesterday I added a
couple patches that try to cope with more uses of __extension.
Yes. I use the latest version of c2hs from darcs.
Then sorry
On Mon, 2007-01-29 at 22:26 +, Duncan Coutts wrote:
On Mon, 2007-01-29 at 22:26 +0900, 向井 淳 wrote:
On 2007/01/29, at 21:55, Duncan Coutts wrote:
Did you try the very latest darcs version of c2hs? Yesterday I added a
couple patches that try to cope with more uses of __extension
On Sat, 2007-01-27 at 19:11 +0100, Henning Thielemann wrote:
On Sat, 27 Jan 2007, Donald Bruce Stewart wrote:
The underlying Get and Put monads support explicit endian writes and
reads, which you can add to your instances explicitly:
On Fri, 2007-01-26 at 15:40 +0100, Arie Peterson wrote:
Hello,
Donald Bruce Stewart wrote:
Ok, I forgot one point. It is possible to automatically derive instances
of Binary for your custom types, if they inhabit Data and Typeable,
using an SYB trick. Load
On Wed, 2007-01-24 at 00:33 +0200, Yitzchak Gale wrote:
My challenge is:
1. Find a way to model strictness/laziness properties
of Haskell functions in a category in a way that is
reasonably rich.
The reason it's not obvious for categories is because the semantics for
Haskell comes from
On Tue, 2007-01-23 at 19:47 -0800, Aaron Tomb wrote:
On Jan 23, 2007, at 5:13 PM, Clifford Beshers wrote:
I don't suppose anyone has any Haskell code that understands the
PDF format, do they?
I know of one, though I'm not sure how complete it is:
On Tue, 2007-01-23 at 13:35 +0200, Yitzchak Gale wrote:
troll
Prelude let f .! g = ((.) $! f) $! g
Prelude let f = undefined :: Int - IO Int
Prelude f `seq` 42
*** Exception: Prelude.undefined
Prelude ((= f) . return) `seq` 42
42
Prelude ((= f) .! return) `seq` 42
42
/troll
Perhaps
On Mon, 2007-01-08 at 18:20 +0100, Hans van Thiel wrote:
Hello All,
The beta of the 'Gtk2Hs:Getting Started' short tutorial for beginners,
Haskell GUI for Dummies, if you like :-) can be viewed at
http://j-van-thiel.speedlinq.nl/gtk2hs/gtk2hsGetStart.html
It tells what Gtk2Hs is, shows
On Mon, 2007-01-08 at 16:11 -0200, Alex Queiroz wrote:
Hallo,
On 1/8/07, Hans van Thiel [EMAIL PROTECTED] wrote:
Hello All,
The beta of the 'Gtk2Hs:Getting Started' short tutorial for beginners,
Haskell GUI for Dummies, if you like :-) can be viewed at
On Sat, 2007-01-06 at 15:30 -0800, tphyahoo wrote:
I'm having trouble installing ghc 6.6. On ubuntu, virtual server (user mode
linux).
Something seems to be killing the process, no idea why.
Anyone seen this?
Yes.
/usr/bin/ar: creating libHSbase.a
xargs: /usr/bin/ar: terminated by
On Sun, 2007-01-07 at 02:07 +, Ross Paterson wrote:
On Sun, Jan 07, 2007 at 12:44:46PM +1100, Donald Bruce Stewart wrote:
Those new to Cabal always seem to assume things are going badly when
happy not found. We need to address the psychological aspect
of Cabal's config process :)
On Fri, 2007-01-05 at 17:51 +, Pedro Baltazar Vasconcelos wrote:
Hello all,
I noticed that GHC generates slower code on an Linux amd64 bit platform than
the 32-bit version on a cheaper 32-bit machine.
CPUTime for running sieve of Erathostenes to generate 10,000 primes:
Athlon XP 2800
On Sat, 2006-12-16 at 19:50 +0100, Waldemar Biernacki wrote:
Hello!
I'd like to start programming in Haskell.
But as an industry programmer I have a hope to use Haskell in my every-day
work. Big part of my every-day work are GUI applications (in MS-Windows)
working with SQL databases
On Wed, 2006-11-29 at 11:26 +, Magnus Therning wrote:
Or the simpler way is to include in your .cabal file:
extensions: ForeignFunctionInterface
That then applies to every module in the lib and has the advantage of
being portable between compilers.
Ah, good point.
Now, where
On Wed, 2006-11-29 at 20:27 +0100, [EMAIL PROTECTED] wrote:
On the implementation level, lazy evaluation is in the way when
crunching bytes.
Something I rather enjoyed when hacking on the ByteString lib is finding
that actually lazy evaluation is great when crunching bytes, though you
do need
On Tue, 2006-11-28 at 15:10 +0300, Bulat Ziganshin wrote:
Hello Niko,
Tuesday, November 28, 2006, 1:42:10 PM, you wrote:
I personally find doing higher order functions with IO extremely
difficult, and the resulting compiler errors are often downright scary.
But this is probably a
On Tue, 2006-11-28 at 17:24 +, Magnus Therning wrote:
On Tue, Nov 28, 2006 at 12:00:50 +, Magnus Therning wrote:
[..]
Can't really see anything obviously bogus about the following:
% cat Foo.chs
module Foo where
#include foo.h
fooOne i = {# call foo1 #} i
I solved
On Mon, 2006-11-27 at 22:26 +, Magnus Therning wrote:
Can I use cabal to build packages that incorporates C libraries and FFI
Haskell created using c2hs?
Yes you can. Cabal understands a bit about .chs files. I think all you
need to do is specify the module in the exposed-modules or
An updated version of the Glade tutorial for Haskell Gtk2Hs is now
available on the Gtk2Hs website:
http://haskell.org/gtk2hs/docs/tutorial/glade/
This is of course linked from the documentation page on the Gtk2Hs site:
http://haskell.org/gtk2hs/documentation/#tutorials
Thanks very much to
1001 - 1100 of 1242 matches
Mail list logo