From: Paul Moore [mailto:[EMAIL PROTECTED]
runhaskell db.hs
can't load .so/.DLL for: sqlite3 (addDLL: unknown error)
This seems odd, as I'm not (intending to be) using sqlite here. If I
copy a sqlite3.dll onto my PATH (just to get by, it's quite possible
sqlite isn't set up right but I
On Dec 13, 2006, at 3:54 AM, Yitz Gale wrote:
Nice. Here is something similar:
reverseWords = concat . reverse . groupBy eqsp
where eqsp x y = isSpace x == isSpace y
This can be made even nicer using the 'on' function [1]:
reverseWords = concat . reverse . groupBy ((==) `on` isSpace)
ulfn:
On Dec 13, 2006, at 3:54 AM, Yitz Gale wrote:
Nice. Here is something similar:
reverseWords = concat . reverse . groupBy eqsp
where eqsp x y = isSpace x == isSpace y
This can be made even nicer using the 'on' function [1]:
reverseWords = concat . reverse . groupBy ((==)
I have written a thin but useful layer on top of parts of Control.Concurrent and
Control.Exception to aid in forking new threads. I think I have written it
correctly and understand the guarantees (when running under GHC 6.4 or 6.6).
It is useful when
* you need to be able to check whether a
On 12/13/06, Bayley, Alistair [EMAIL PROTECTED] wrote:
From: Paul Moore [mailto:[EMAIL PROTECTED]
This appears to be caused by ghci/runhaskell wanting to link the entire
library at once, rather than just the modules you're using. I don't know
if this is a bug or a feaure with ghci; anybody else
Hi
Yhc also has a .NET generating capability, just pass the -dotnet flag.
http://haskell.org/haskellwiki/Yhc
Thanks
Neil
On 12/12/06, Monique Monteiro [EMAIL PROTECTED] wrote:
Hi Justin,
I've runned a research project about this topic (in fact, it was the
subject of my MSc dissertation).
Hi
I'm wondering if I should submit this as a patch for MissingH. If so,
where in the new hierarchy should this be placed?
I submitted 3 patches to missingh about a week ago, but have heard
nothing back since. Did they get spam filtered or something?
Thanks
Neil
The problem with Haskell for .NET is that the produced executables are
usually very slow. Good optimizing compiler like GHC has better chance
to produce code with reasonable performance. The major problem with
YHC is that it still doesn't have strictness analyzer. The consequence
is that the
I think this is going out of the way. Excuse me, but the main discussion was
not about pascal!
And thanks again to all. Now I think there is a bigger whole between current
situation of Haskell and using It as a real tool, than what I thought
before.
But any way; I still have a hope for rising a
I really like your approach Udo, and I would use it, but I added the
condition of not splitting the descriptor for a good reason, let me
explain it.
Let's summarize what we have first ...
Here is my _simplified_ Descriptor
-- Descriptor, equivalent to a C struct with function pointers
-- hd
On 12/13/06, Brandon Moore [EMAIL PROTECTED] wrote:
It looks to me like the C code could make your program segfault from a
type missmatch, if it
gets a handle from instantiating one descriptor, and tries to run it
from another.
Well, the C code could even provide (by error or at will) any
On Wed, Dec 13, 2006 at 04:19:58PM +1100, Donald Bruce Stewart wrote:
In particular, you seem to be wanting my pipeBoth function.
Note that your proposed String - IO String function type is insufficient
because it does not provide a way to evaluate the return value of the
function.
On Wed, Dec 13, 2006 at 12:01:36PM +, Neil Mitchell wrote:
Hi
I'm wondering if I should submit this as a patch for MissingH. If so,
where in the new hierarchy should this be placed?
I submitted 3 patches to missingh about a week ago, but have heard
nothing back since. Did they get
Alex Queiroz wrote:
On 12/12/06, Benjamin Franksen [EMAIL PROTECTED] wrote:
PS: Please try to include exactly the relevant context in replies, no
more, no less. Your original question (stripped down to the body of the
text) would have been relevant, here, but neither 'Hello', nor 'Cheers'
are
On 12/13/06, Kaveh Shahbazian [EMAIL PROTECTED] wrote:
I think this is going out of the way. Excuse me, but the main discussion was
not about pascal!
This list is exactly for off-topic discussions :-)
And thanks again to all. Now I think there is a bigger whole between current
situation of
Having said that, I now get
ghc --make db.hs -o db
[1 of 1] Compiling Main ( db.hs, db.o )
Linking db.exe ...
D:\Apps\GHC\gcc-lib\ld.exe: cannot find -lsqlite3
collect2: ld returned 1 exit status
This may be because I have a sqlite3.dll in my PATH, but no
development libs.
Hello Joachim,
Wednesday, December 13, 2006, 2:17:08 AM, you wrote:
Actually, it's quite simple: following the ideology de jour and
teaching-relevant support.
are you remember title of Wirth's book? algorithms + data structures =
programs. i think that Haskell is ideal language for teaching
Hello Udo,
Wednesday, December 13, 2006, 3:25:32 AM, you wrote:
Well, all you need to do is to throw out your OO-Think (and with it
Typeable and casts) and you'll realize what you're actually doing here:
you're passing functions. Say so and everything comes naturally.
Alfonso, you may be
Hello Kirsten,
Tuesday, December 12, 2006, 4:28:18 PM, you wrote:
Actually, the more I think of it, the more I think we should rename
the language altogether.
Curry would have avoided this problem.
we can also rename Pascal to Blez to avoid confusion
--
Best regards,
Bulat
Hello Paul,
Tuesday, December 12, 2006, 4:48:55 PM, you wrote:
./Setup.lhs configure -p
./Setup.lhs build
./Setup.lhs install
I come from a Python background, and Python's distutils (which feels
very like cabal - or should that be the other way round?) tends to
have later
Hello Monique,
Wednesday, December 13, 2006, 1:05:18 AM, you wrote:
subset of the Haskell language to .NET, but we still don't have an
available release (we don't support the full Haskell prelude yet).
if you are interested in providing Base library functionality, look at the
On 12/13/06, Alfonso Acosta [EMAIL PROTECTED] wrote:
-- hd and id are (void *) in C and modelled as type parameters in Haskell
data Descriptor id hd =
Descriptor {uniqueID :: LadspaIndex,
label :: String,
Alfonso Acosta wrote:
On 12/13/06, Udo Stenzel [EMAIL PROTECTED] wrote:
Finished! Look Ma, no existentials, no Typeable, no wrappers, even the
types have become simple!
I like the fact that type parameters are removed, which makes them
homegeneus and solves the problem of storing them in a
On 12/13/06, Alfonso Acosta [EMAIL PROTECTED] wrote:
deactivate :: Maybe(hd - IO ()),
According to the spec, NULL here means no-op. So instead of using
Maybe, just set deactivate = \_ - return () if you see NULL.
--
Taral [EMAIL PROTECTED]
You can't prove anything.
Hi Krasimir,
to produce code with reasonable performance. The major problem with
YHC is that it still doesn't have strictness analyzer.
It does, or rather Yhc.Core does (see Yhc.Core.Strictness -
http://www.cs.york.ac.uk/fp/yhc/snapshot/docs/Yhc-Core-Strictness.html).
This was only done a few
On 12/13/06, Taral [EMAIL PROTECTED] wrote:
Second, you don't want the consumer to pick the hd type. If you're
willing to accept extensions (I think you are), make it existential:
data Descriptor = forall hd. Descriptor { ... }
This will ensure that you can't pass the handles from one plugin
On 12/13/06, Bulat Ziganshin [EMAIL PROTECTED] wrote:
Hello Joachim,
Wednesday, December 13, 2006, 2:17:08 AM, you wrote:
Actually, it's quite simple: following the ideology de jour and
teaching-relevant support.
are you remember title of Wirth's book? algorithms + data structures =
On 12/13/06, Neil Mitchell [EMAIL PROTECTED] wrote:
Hi Krasimir,
to produce code with reasonable performance. The major problem with
YHC is that it still doesn't have strictness analyzer.
It does, or rather Yhc.Core does (see Yhc.Core.Strictness -
Bulat Ziganshin [EMAIL PROTECTED] wrote:
one particular thing that we still lack is something like book
Haskell in real world
How about:
On the web page the screen shots are all on Windows. Is that the only
supported platform at the moment? (I'd love to see support for GTK :-)
/M
--
Magnus Therning (OpenPGP: 0xAB4DFBA4)
[EMAIL PROTECTED] Jabber: [EMAIL PROTECTED]
On 12/12/06, Joachim Durchholz [EMAIL PROTECTED] wrote:
Agreed.
Something along the lines of The Art of Functional Programming.
+1 . I would love to read something that is the equivalent of 'design
patterns', but for functional languages. I thought Osasaki's book Purely
Functional Data
On 12/13/06, Krasimir Angelov [EMAIL PROTECTED] wrote:
The problem with Haskell for .NET is that the produced executables are
usually very slow. Good optimizing compiler like GHC has better chance
I don't really want something that compiles Haskell to the CLR, though that
would be great
Phooey is built on wxHaskell. Quoting from the wxHaskell home
pagehttp://wxhaskell.sourceforge.net
,
wxHaskell is therefore built on top of wxWidgets
http://www.wxwidgets.org/– a comprehensive C++ library that is
portable across all major GUI
platforms; including GTK, Windows, X11, and MacOS
Hi
And strictness is not the biggest problem, a complete lack of any
optimisations is, but I'm working on that one too!
It is great to hear that. Of course an optimiser will be beneficial
too but I guess that even the benefit that the code generator can have
from the strictness analyzer will
The reason why Haskell is academic-centric is that it was originally
conceived by academics, and they were interested in doing research
into language design and implementation ..
shouldn't we make this used to be academic-centric?
People outside academia who might be inclined to take on some
Hallo,
On 12/13/06, Claus Reinke [EMAIL PROTECTED] wrote:
we have had lots of languages that were intended to be well-designed
(good, beautiful, ..), but never much used in practice, and we have also
had lots of languages that were intended to be pragmatic (practical,
useful, ..), without much
On 12/13/06, Taral [EMAIL PROTECTED] wrote:
On 12/13/06, Alfonso Acosta [EMAIL PROTECTED] wrote:
-- hd and id are (void *) in C and modelled as type parameters in Haskell
data Descriptor id hd =
Descriptor {uniqueID :: LadspaIndex,
label
On 12/13/06, Taral [EMAIL PROTECTED] wrote:
On 12/13/06, Alfonso Acosta [EMAIL PROTECTED] wrote:
deactivate :: Maybe(hd - IO ()),
According to the spec, NULL here means no-op. So instead of using
Maybe, just set deactivate = \_ - return () if you see NULL.
I
Dimitry Golubovsky [EMAIL PROTECTED] wrote:
Is this a bug or a feature that cpphs does not pass the #pragma cpp
directive (they disappear in the output)?
A feature I suppose. At least, it was a deliberate design choice. The
purpose of cpphs is to remove all # directives from the file,
On 12/13/06, Taral [EMAIL PROTECTED] wrote:
Third, we can split handles out as actual objects now:
This idea resembles how a descriptor is modelled in the last version
of HLADSPA. The difference is that a handle is modelled as a type
class and not a record (see
Does anyone know of any good source of examples if one wants to learn to
use c2hs?
The documentation that comes with c2hs is a little too sparse when it
comes to examples to actually work out how things work.
I don't mind looking at some reasonably sized project that uses c2hs
(gtk2hs is a
On 12/13/06, Alfonso Acosta [EMAIL PROTECTED] wrote:
I don't see what you mean here. I'm not using ForeignPtrs at all.
... you're *writing* a plugin, not using one. Oh. Um... let me think
about that one.
--
Taral [EMAIL PROTECTED]
You can't prove anything.
-- Gödel's Incompetence Theorem
2006/12/12, Kirsten Chevalier [EMAIL PROTECTED]:
[snip]
I've been thinking about this. Are there really any programmers who
are like Mozart in the way you describe? Donald Knuth might be one, or
at least, he wrote that he wrote and debugged all of TeX on paper
before entering it into a computer
Hello Brian,
Tuesday, December 12, 2006, 3:39:41 PM, you wrote:
So I was wondering if there was a better introduction for me out there?
I'm willing to pay for a book or read something online, whichever.
i think that there are not so much FP programmers learning Haskell
(comparing to number of
On Tue, 12 Dec 2006 12:07:37 +0100, Kirsten Chevalier
[EMAIL PROTECTED] wrote:
On 12/12/06, Patrick Mulder [EMAIL PROTECTED] wrote:
Not sure whether this is the right place to discuss
computers and programming in general:
You're implying that there's a *more* appropriate forum somewhere
On Wed, 13 Dec 2006, John Goerzen wrote:
[... re System.Cmd.Utils]
It could go under System.Posix perhaps. It relies quite heavily on
functionality provided by the unix package and the System.Posix.* tree.
Take a look at the source at:
Please note that it may be hard to make a
print out of a wikibook. You might want to
use Docbook/XML or Latex in a darcs repo-
sitory instead.
On Mon, Dec 11, 2006 at 03:23:13PM -0500, Matt Revelle wrote:
Sorry, wasn't sure I had clearly expressed that it's possible to have
an open book end up
Hi,
I've been using the HughesPJ pretty printing library, but I need a new
combinator:
wrap :: String - Doc - String - Doc
wrap prepend doc append = ...
The semantics of this would be that the text is prepended and appended
to the doc when rendered, but does not alter the pretty printing at
On Wed, Dec 13, 2006 at 08:58:25PM +, Neil Mitchell wrote:
I've been using the HughesPJ pretty printing library, but I need a new
combinator:
wrap :: String - Doc - String - Doc
wrap prepend doc append = ...
The semantics of this would be that the text is prepended and appended
to
The Prettyprint library you can download from:
http://www.cs.uu.nl/wiki/HUT/Download
and is described on:
http://www.cs.uu.nl/wiki/HUT/PrettyPrintingCombinators
contains amongst others the following code:
data Doc= Empty
| Char Char -- invariant: char is
Consider the terminal session at the bottom of this message.
The extra xc in Test.hs was the result of me missing CTRL during an
Emacs command (I'm guessing...). Unfortunately this took 30 minutes to
find since I had far more than two modules and the error message
doesn't point this out. Sure
Hi
Something like:
wrap prepend doc append =
zeroText prepend doc zeroText append
zeroText s = textBeside_ (Str s) 0 Empty
Thanks, that works great!
Is there likely to be any support for adding this to the standard
library? I'd rather not have to fork a version of HughesPJ to get this
On 12/13/06, minh thu [EMAIL PROTECTED] wrote:
Another difference with music that strikes me is the level of
abstraction : a note is a note. A line of code (especially in a
imperative setting) is much more than a line of code. Ok, one can
argue that notes interact together but, imo, not in the
On 12/13/06, Claus Reinke [EMAIL PROTECTED] wrote:
The reason why Haskell is academic-centric is that it was originally
conceived by academics, and they were interested in doing research
into language design and implementation ..
shouldn't we make this used to be academic-centric?
I think
Hello Alex,
Wednesday, December 13, 2006, 8:01:07 PM, you wrote:
mailing list, and the usual answer is why?. The authors claim that
when thinking about a new version of Lua they don't think of features
to add, but what features they can remove.
Newspeak is the only language that is
Hello Malcolm,
Wednesday, December 13, 2006, 6:53:56 PM, you wrote:
one particular thing that we still lack is something like book
Haskell in real world
How about:
Applications of Functional Programming (Hardcover)
by Colin Runciman (Editor), David Wakeling (Editor)
Kirsten Chevalier wrote:
On 12/12/06, Patrick Mulder [EMAIL PROTECTED] wrote:
PS I like the idea of a book Hakell for Hackers
Maybe Haskell for People Who Want to Be Hackers?
I would never buy a book with such a title, even if I didn't have the
slightest clue about programming. However
ok, i'll bite. why should i prefer join rather than concat in the list
monad. and, moreover, why is this a lambdabot trick?
i suspect that the answer actually has a deep connection to the
'dummies' thread next door. while any program that produces the right
result is correct, there are some
sdowney:
ok, i'll bite. why should i prefer join rather than concat in the list
monad. and, moreover, why is this a lambdabot trick?
Oh, but you shouldn't prefer it! It's obfuscating!
It's a trick simply because lambdabot knows the rewriting:
12:16 dons ?pl reverseWords = concat .
well, if Sun hadn't have released a version of smalltalk with a funny
c like syntax, you might have seen some interesting developments in
the mid 90's
On 12/13/06, Claus Reinke [EMAIL PROTECTED] wrote:
The reason why Haskell is academic-centric is that it was originally
conceived by
doaitse:
The Prettyprint library you can download from:
http://www.cs.uu.nl/wiki/HUT/Download
I've added uulib to the libraries page:
http://haskell.org/haskellwiki/Libraries_and_tools/Compiler_tools#Pretty_printing
But this makes me wonder: how many other top secret utrecht
well, if Sun hadn't have released a version of smalltalk with a funny
c like syntax, you might have seen some interesting developments in
the mid 90's
yes, perhaps. but now that funny smalltalk is open source, the self
team has been released from indenture (after Scheme and Self
people, Sun is
Hi all,
I'm now using existential types. I avoided learning about them because the
name sounded so highly technical and obscure it did not occur to me they
could be related to OO.
Thanks,
-John
On 12/7/06, John Ky [EMAIL PROTECTED] wrote:
Hi,
I've got an object model that I have a
One of the great aspects of programming Haskell is the community.
We should aim to have the strongest, friendliest, most productive
community we can. We're doing a good job so far, can we do even better?
Reading this:
How to Build a User Community
jgoerzen:
On Wed, Dec 13, 2006 at 04:19:58PM +1100, Donald Bruce Stewart wrote:
In particular, you seem to be wanting my pipeBoth function.
Note that your proposed String - IO String function type is insufficient
because it does not provide a way to evaluate the return value of the
I'm developing a typesafe record library (akin to HList but starting
with key/val pairs and enforcing uniqueness and sorted order of keys).
I'm having a GHC problem I've had with other projects and seen
comments regarding it in other people's code (HList for instance: GHC
doesn't like it's own
On 12/13/06, Donald Bruce Stewart [EMAIL PROTECTED] wrote:
* Give tips on how to answer questions
+ Ok. we can put up an article here. Some suggestions:
- Solutions with unsafePerformIO should be discouraged (moreso
;)
I'd like to at least suggest a slight
On 12/14/06, Benjamin Franksen [EMAIL PROTECTED] wrote:
Kirsten Chevalier wrote:
(Since, of course,
one should never apply the term hacker to oneself.)
Who told you that?
The Jargon File. But yes, I can anticipate more or less all of the
possible responses to *that*, and, point taken.
Forward to haskell-cafe@haskell.org for further discussion.
- Forwarded message from Walter Moreira [EMAIL PROTECTED] -
Date: Thu, 14 Dec 2006 06:46:44 +
From: Walter Moreira [EMAIL PROTECTED]
To: haskell@haskell.org
Subject: [Haskell] interpreter ouput in color
Hi all. I was
69 matches
Mail list logo