Greetings,
I'm a longtime Haskell-curious programmer who, after a few aborted
attempts at getting started and long nights staring at academic
papers, finally managed to get the bug. I've been pleased with my
progress so far, but a couple of things have bugged me enough to seek
advice from the
Owen Smith wrote:
1. Contending with the use of frequently unfamiliar non-alphanumeric
operators has been an uphill battle for me. I think the main reason
for this is that I've had no luck in Googling up their definitions (my
primary approach for dealing with every other unknown in the Haskell
On Sat, Nov 22, 2008 at 11:31 AM, Owen Smith [EMAIL PROTECTED] wrote:
I'm a longtime Haskell-curious programmer who, after a few aborted
attempts at getting started and long nights staring at academic
papers, finally managed to get the bug. I've been pleased with my
progress so far, but a
On Sat, Nov 22, 2008 at 2:31 AM, Owen Smith [EMAIL PROTECTED] wrote:
2. There's a lot I need to learn about good Haskell style, especially
coming from a C++ background. Even my experience in Lisp seems to
result in way more parentheses than Haskell coders are comfortable
with. :-) In
[moved to haskell-cafe]
{-# LANGUAGE CPP #-}
module Packer where
#define FLASH_APP_START 1
#define FLASH_APP_END2
#define INSERT_SECTION(x) (#x, (FLASH_##x##_START, FLASH_##x##_END))
The CPP stringization operator # and the token-catenation operator ##
are ANSI additions over the
Be careful, though. This only works if there's a single constructor
for your exception type. If there are multiple, you should write it
like this:
thing_to_try `catch` \(e :: MyErrorType) - case e of MyError1 _ -
..; MyError2 _ - ...
If you write `catch` (MyError1 ...) and a MyError2 is
Please advise how to write Unicode string, so this example would work:
main = do
putStrLn Les signes orthographiques inclus les accents (aigus, grâve,
circonflexe), le tréma, l'apostrophe, la cédille, le trait d'union et la
majuscule.
I get the following error:
hello.hs:4:68:
lexical error
2008/11/22 Dmitri O.Kondratiev [EMAIL PROTECTED]:
Please advise how to write Unicode string, so this example would work:
main = do
putStrLn Les signes orthographiques inclus les accents (aigus, grâve,
circonflexe), le tréma, l'apostrophe, la cédille, le trait d'union et la
majuscule.
That
Of course, this would require a change to Template Haskell, so a
second-best solution would be to forbid unparenthesised expressions in
my quasiquoter. Then, parsing can proceed correctly without knowing
the fixities. This would be easiest to do if haskell-src-exts changed
its AST in a
Peter Hercek wrote:
But Haskell with Control.Exception extension has more values
of all types since they can be thrown and later caught and
investigated at that place.
Maybe the last sentence of section 2.1 (_|_ Bottom) of
Haskell/Denotational semantics should be clarified better.
Ryan Ingram wrote:
On Tue, Nov 18, 2008 at 12:46 PM, Luke Palmer [EMAIL PROTECTED] wrote:
But when these persistent data structures are used in a
single-threaded way, why should we not hope for the performance to be
comparable?
If you can guarantee single-threaded use, then you can just use
Excerpts from Dmitri O.Kondratiev's message of Sat Nov 22 05:40:41 -0600 2008:
Please advise how to write Unicode string, so this example would work:
main = do
putStrLn Les signes orthographiques inclus les accents (aigus, grâve,
circonflexe), le tréma, l'apostrophe, la cédille, le trait
On Fri, 2008-11-21 at 16:12 -0800, Ahn, Ki Yung wrote:
I am just curious about how cabal report works.
I recently figured out that there is a report command in cabal and it
reports the reports generated by --build-reports option when building a
package.
Is this because I don't have an
Sean Leather wrote:
EMGM [1] has a generic zipWith [2]:
zipWith :: FRep3 ZipWith f = (a - b - c) - f a - f b - Maybe (f c)
This is generic according to the container type 'f'. A particular
specialization of this is zip:
zip :: FRep3 ZipWith f = f a - f b - Maybe (f (a, b))
Also,
Alexey Khudyakov wrote:
putStrLn Ну и где этот ваш хвалёный уникод?
:-)
--
Dr. Janis Voigtlaender
http://wwwtcs.inf.tu-dresden.de/~voigt/
mailto:[EMAIL PROTECTED]
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
On Sat, 2008-11-22 at 11:33 +, Thomas Schilling wrote:
Be careful, though. This only works if there's a single constructor
for your exception type. If there are multiple, you should write it
like this:
thing_to_try `catch` \(e :: MyErrorType) - case e of MyError1 _ -
..; MyError2 _ -
You only need an account for uploading packages. If you do not want to
have to enter your user name or password interactively when you run
cabal upload then you can put them in the config file:
username:
password:
That sounds like a very bad idea, and should not be encouraged!
Any compromised
On Sat, 2008-11-22 at 15:11 +, Claus Reinke wrote:
You only need an account for uploading packages. If you do not want to
have to enter your user name or password interactively when you run
cabal upload then you can put them in the config file:
username:
password:
That sounds
2008/11/22 David F. Place [EMAIL PROTECTED]:
On Sat, 2008-11-22 at 11:33 +, Thomas Schilling wrote:
Be careful, though. This only works if there's a single constructor
for your exception type. If there are multiple, you should write it
like this:
thing_to_try `catch` \(e ::
On Sat, Nov 22, 2008 at 03:11:34PM -, Claus Reinke wrote:
You only need an account for uploading packages. If you do not want to
have to enter your user name or password interactively when you run
cabal upload then you can put them in the config file:
username:
password:
That sounds
On Sat, 2008-11-22 at 15:27 +, Thomas Schilling wrote:
*Main tryJust errorCalls $ print $ [] !! 23
tryJust errorCalls $ print $ [] !! 23^JLeft Prelude.(!!):
index
too large
*Main tryJust errorCalls $ print $ throw NonTermination
tryJust
It seems to me that fixity information behaves more like semantics
than like syntax. For instance, fixities may be imported, and obey
namespacing rules. Knowing and correctly handling these rules seems
beyond the scope of a mere parser: I would hope that a single Haskell
file could be parsed
Any compromised uploader machine with stored passwords can
be used to upload compromising code, which will propagate to all
downloaders.
It doesn't really matter whether a compromised machine stores a password or
not. If you upload anything using a compromised machine, the attacker
has the
alexey.skladnoy:
That really ought to work. Is the file encoded in UTF-8 (rather than,
eg. latin-1)?
This should pretend to work. Simple print functions garble unicode characters.
For example :
putStrLn Ну и где этот ваш хвалёный уникод?
prints following output
C 8 345 MBB 20H
On Sat, Nov 22, 2008 at 5:33 AM, Janis Voigtlaender
[EMAIL PROTECTED] wrote:
You can generally make a persistent data structure with the same
asymptotic bounds as the ephemeral structure, ...
I would be very careful with the generally here. At least, I am not
aware that this has been proved
On Sat, 2008-11-22 at 10:02 -0800, Don Stewart wrote:
Use the UTF8 printing functions,
import qualified System.IO.UTF8 as U
main = U.putStrLn Ну и где этот ваш хвалёный уникод?
Running this,
*Main main
Ну и где этот ваш хвалёный уникод?
This upsets me. We need to
Hi everyone,
It's sad to see the OpenGL binding being dropped from GHC binary
installers starting from 6.10. Though this issue has been brought up
and discussed before, I'm sure a lot of people who based their work on
OpenGL would share the same sympathy.
I'm not here to argue whether this
ninegua:
Hi everyone,
It's sad to see the OpenGL binding being dropped from GHC binary
installers starting from 6.10. Though this issue has been brought up
and discussed before, I'm sure a lot of people who based their work on
OpenGL would share the same sympathy.
$ cabal install
On Sat, 22 Nov 2008, Thomas Schilling wrote:
Be careful, though. This only works if there's a single constructor
for your exception type. If there are multiple, you should write it
like this:
thing_to_try `catch` \(e :: MyErrorType) - case e of MyError1 _ -
..; MyError2 _ - ...
If you
$ cabal install OpenGL
HOpenGL installs easily with cabal-install, but most HOpenGL examples
and tutorials also use GLUT, which is not so painless on Windows.
Luckily Conal Elliot just recently posted detailed instructions of how
to do it:
I'm not sure.. can MSVC compiled libraries be intermixed with mingwin
libraries? I see Conal has advised installing mingwin as part of his
GLUT packaging.
-- Jeff
On Sat, Nov 22, 2008 at 7:06 PM, Greg Fitzgerald [EMAIL PROTECTED] wrote:
$ cabal install OpenGL
HOpenGL installs easily
On Sat, 22 Nov 2008, Thomas Schilling wrote:
It's a pattern match error, implemented by throwing an asynchronous
exception. The idea being, that we only have one mechanism (well, an
synchronous exceptions, thrown via throwIO).
Yes, I know that there's a difference between error and
That post is by David Sankel (camior on #haskell), not by me.
My last name has two ts.
Good luck, - Conal (Elliott)
On Sat, Nov 22, 2008 at 4:06 PM, Greg Fitzgerald [EMAIL PROTECTED] wrote:
$ cabal install OpenGL
HOpenGL installs easily with cabal-install, but most HOpenGL examples
On Sun, 2008-11-23 at 01:40 +0100, Henning Thielemann wrote:
On Sat, 22 Nov 2008, Thomas Schilling wrote:
It's a pattern match error, implemented by throwing an asynchronous
exception. The idea being, that we only have one mechanism (well, an
synchronous exceptions, thrown via throwIO).
On 11/22/08, Don Stewart [EMAIL PROTECTED] wrote:
ninegua:
Hi everyone,
It's sad to see the OpenGL binding being dropped from GHC binary
installers starting from 6.10. Though this issue has been brought up
and discussed before, I'm sure a lot of people who based their work on
OpenGL would
Ryan Ingram wrote:
On Sat, Nov 22, 2008 at 5:33 AM, Janis Voigtlaender
[EMAIL PROTECTED] wrote:
You can generally make a persistent data structure with the same
asymptotic bounds as the ephemeral structure, ...
I would be very careful with the generally here. At least, I am not
aware that
This upsets me. We need to get on with doing this properly. The
System.IO.UTF8 module is a useful interim workaround but we're not using
it properly most of the time.
... skipped ...
The right thing to do is to make Prelude.putStrLn do the right thing. We
had a long discussion on how to
alexey.skladnoy:
This upsets me. We need to get on with doing this properly. The
System.IO.UTF8 module is a useful interim workaround but we're not using
it properly most of the time.
... skipped ...
The right thing to do is to make Prelude.putStrLn do the right thing. We
had a
On Sat, Nov 22, 2008 at 1:20 PM, Jason Dusek [EMAIL PROTECTED] wrote:
Ryan Ingram [EMAIL PROTECTED] wrote:
...persistent data structures tend to have much worse constant
factors and those factors translate to a general 2x-3x
slowdown.
Can you explain why that is, or provide a citation for
Henning Thielemann wrote:
On Sat, 22 Nov 2008, Janis Voigtlaender wrote:
Definitely. And that surfaces even in quite innocently looking programs
and statements about them. The introductory example of the following
technical report may be amusing in that respect:
40 matches
Mail list logo