That how I was taught to round in school, so it doesn't seem at all
unusual to me.
2009/7/23 Matthias Görgens matthias.goerg...@googlemail.com:
Round-to-even means x.5 gets rounded to x if x is even and x+1 if x is
odd. This is sometimes known as banker's rounding.
OK. That's slightly
Dear list members,
In February this year there was a posting Why does sleep not work?
(http://www.haskell.org/pipermail/haskell-cafe/2009-February/055400.html).
The problem was apparently caused by signal handler interruptions. I
noticed the same (not with sleep though) when doing some FFI work
Henning Thielemann wrote:
Heinrich Apfelmus schrieb:
Note that there are alternative solution for this particular problem.
For instance, a version of qualified with different semantics will do;
something like this
import Data.List
import sometimes qualified Data.Map as Map
Job Vranish wrote:
I think that in an ideal world haskell would have some way of allowing
infinite types if you asked for them explicitly (say in the type signature
somehow) and then just automatically wrap/unwrap everything with newtypes
behind the scenes (well maybe in an ideal world it
Don Stewart wrote:
andrewcoppin:
Maybe I'm being dense... Is there somewhere which lists what's changed
from the last release?
Oh, sorry, that will be in the web announcement tomorrow.
No problem. ;-)
Given the Platform's aims, I think it would be a good idea to make it
blindingly
On Sun, Aug 2, 2009 at 12:25 PM, Petr Pudlak d...@pudlak.name wrote:
I'd like to convince people at our university to pay more attention to
functional languages, especially Haskell. Their arguments were that
(1) Functional programming is more academic than practical.
(2) They are using
I am trying to understand the design of the Haskell interface files.
Why
are they a separate file rather than having the same data in the
object
file generated by the compiler? (Naively, it seems to me this would
work
also. Am I missing something?)
Placing interface information into
This sounds great! I really like using yaml for web development.
However, my last use case was for a non-techie, so I created a little
desktop application for editing the yamlbase, if you excuse the
neologism.
I think it worked quite well, because the user was then presented with a
friendly
Hi
Some good reasons for having a separate interface are: they can be
human-readable and human-writable (ghc's do not fulfill this criterion);
they can be used to bootstrap mutually recursive modules in the absence of
any object files (ghc uses .hs-boot files instead); other tools can
In a lot of cases though annotating all the recursive aspects with newtypes
is a _royal_ pain, and is even worse if you want the datatypes to be
instances of common type classes like Functor, Applicative, etc... (try it
sometime)
I don't advocate allowing infinite types wholesale, just in specific
+++ Don Stewart [Aug 03 09 22:53 ]:
alexander.dunlap:
o pandoc — markdown, reStructuredText, HTML, LaTeX, ConTeXt,
Docbook, OpenDocument, ODT, RTF, MediaWiki, groff
No. Pandoc is too actively developed to go into the HP. It's also much
more of an end-user application than a
I'm working on a Haskell binding for AntTweakBar,
a light user interface for OpenGL applications
(http://www.antisphere.com/Wiki/tools:anttweakbar).
I have three questions about how to organize it as a
Haskell package or packages, Cabal, and darcs.
First, since AntTweakBar provides support for
On Tue, Aug 4, 2009 at 4:54 PM, John MacFarlanej...@berkeley.edu wrote:
[..]
In this connection, I want to make a general point about the HP:
In a way, it doesn't matter so much which additional pure Haskell
libraries it includes, because once you have cabal install, you can get
anything
On Tue, Aug 4, 2009 at 6:13 PM, Magnus Therningmag...@therning.org wrote:
AFAIU the plan is to separate GHC and its platform packages, so in
the future it might not be that easy to get to the point where you
_can_ run 'cabal install'.
Absolutely not. The point of HP is to make the path from
Hello John,
Tuesday, August 4, 2009, 7:54:14 PM, you wrote:
methods other than Deflate. A better solution, perhaps, would be a
binding to libzip.
it's hard to find feature list for libzip, but i suggest to look into
7zip library support. it supports lot of archive formats, including
zip, rar,
On Mon, Aug 3, 2009 at 10:40 PM, Alexander Dunlap
alexander.dun...@gmail.com wrote:
o unicode text [text] [text-icu] — packed, unicode text
This is essential, although I don't know if it is stable enough for
the platform (?).
I'm doing some cleaning up of the APIs at the moment
There are a number of ways to fix this of various complexity, depending on
how many kinds of statements you have in your language and how adverse you
are to code duplication.
One option is to remove the recursion from your statement type and to make a
'base functor' like you've proposed with your
Max Rabkin wrote:
On Tue, Aug 4, 2009 at 6:13 PM, Magnus Therningmag...@therning.org wrote:
AFAIU the plan is to separate GHC and its platform packages, so in
the future it might not be that easy to get to the point where you
_can_ run 'cabal install'.
Absolutely not. The point of HP is to
On Tue, Aug 4, 2009 at 11:56 PM, Magnus Therningmag...@therning.org wrote:
AIUI, on systems with working package managers, HP will be a
metapackage which depends on the appropriate real packages.
Yes, but again, the role of HP shouldn't be to limit the pain of installing
bindings to C
Total package downloads on Hackage, by August 1 2009,
http://www.galois.com/~dons/hackage/august-2009/popularity-august-2009.html
All packages by month:
http://www.galois.com/~dons/hackage/august-2009/hackage-august-2009.html
Raw data:
Hi all,
I've recently came across a problem when processing a large text file
(around 2G in size).
I wrote a Haskell program to count the number of lines in the file.
module Main where
import System
import qualified Data.ByteString.Char8 as S
-- import Prelude as S
main :: IO ()
main = do {
haskellmail:
Hi all,
I've recently came across a problem when processing a large text file (around
2G in size).
I wrote a Haskell program to count the number of lines in the file.
module Main where
import System
import qualified Data.ByteString.Char8 as S
-- import Prelude as S
Oh right. Thanks for pointing out. :)
On Wed, Aug 5, 2009 at 10:06 AM, Don Stewart d...@galois.com wrote:
haskellmail:
Hi all,
I've recently came across a problem when processing a large text file
(around
2G in size).
I wrote a Haskell program to count the number of lines in the
23 matches
Mail list logo