In correspondance with Alistair Bayley I learned that there is in fact a
gtk2hs installer for 6.10.4. One can find it by Googling "gtk2hs 6.10.4"
(which I did not think to do). The URL is in
http://www.mail-archive.com/gtk2hs-de...@lists.sourceforge.net/msg00340.html
The installer doesn't work if
Hello Alberto,
Thank you! I don't have a problem calling for LP at hand right now, but some
time ago I was looking for such a package. Now I know where to look next time
:)
Greetings,
Daniel
On Wednesday 24 February 2010 11:07:08 Alberto Ruiz wrote:
> I have uploaded to hackage an interface
For what it's worth, Erlang addresses this issue with an
-export_all directive, which can be passed as a compiler option.
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
On 25 February 2010 11:24, Don Stewart wrote:
> Seriously?? Doesn't that break the module system?
Maybe I misunderstood it; all I know is that Curt Sampson says he uses
this kind of stuff for testing purposes by not having to export
functions.
See the -fwarn-unused-binds section at
http://www.ha
On Wed, Feb 24, 2010 at 01:28:56PM -0500, Edward Kmett wrote:
> > * GHC/LLVM bytecode with JIT-option?
>
> There is little preventing this one.
Oh, what a great idea! C code being inlined into Haskell
functions! :D
If clang were used to compile the C code into LLVM IR, and
everything were linked
ivan.miljenovic:
> On 24 February 2010 20:17, Magnus Therning wrote:
> > I often find that I do want an export list to reduce clutter in the
> > finished code, but for testing I'd like to expose everything in a
> > module. Is there a nice way to deal with this (using the C
> > pre-processor would
On 25 February 2010 10:21, Evan Laforge wrote:
> On Wed, Feb 24, 2010 at 3:10 PM, Ivan Miljenovic
> wrote:
>> If you start a function name with an underscore, it is "implicitly
>> exported" by GHC (I can't find the actual documentation page at the
>> moment however). Whilst it may not appear in
On Wed, Feb 24, 2010 at 3:10 PM, Ivan Miljenovic
wrote:
> On 24 February 2010 20:17, Magnus Therning wrote:
>> I often find that I do want an export list to reduce clutter in the
>> finished code, but for testing I'd like to expose everything in a
>> module. Is there a nice way to deal with this
On 24 February 2010 20:17, Magnus Therning wrote:
> I often find that I do want an export list to reduce clutter in the
> finished code, but for testing I'd like to expose everything in a
> module. Is there a nice way to deal with this (using the C
> pre-processor would not qualify as "nice" ;-)?
On Feb 24, 2010, at 16:17 , Fabian Roth wrote:
Using UnsafeIO, however, leaves a creepy unsafe feeling...
I don't fully understand though why it is unsafe. Doesn't
hGetContents do the exact same thing (i.e. reading from IO returning
a lazy string) but does not require UnsafeIO.
It does; it'
On Tue, 23 Feb 2010 08:30:18 -0300, you wrote:
>Hi folks,
>
>While solving a puzzle, I was posed the problem of finding if there was no
>duplicates on a list.
Must it be a list data structure(DS) or list ADT?
Mergesort can be parallelized.
>
>Best regards,
>
>Rafael
If space is at a premium y
Am Mittwoch 24 Februar 2010 23:17:46 schrieb Andrew Coppin:
> Erlend Hamberg wrote:
> > if you open the software manager and go to configuration →
> > repositories, you should be able to add new software sources. i use
> > the following repository:
> >
> > Server name: download.opensuse.org
> > Dir
On Tue, 23 Feb 2010 08:30:18 -0300, you wrote:
>Hi folks,
>
>While solving a puzzle, I was posed the problem of finding if there was no
>duplicates on a list.
Must it be a list data structure(DS) or list ADT?
Mergesort can be parallelized.
>
>Best regards,
>
>Rafael
--
Regards,
Casey
_
Erlend Hamberg wrote:
if you open the software manager and go to configuration → repositories, you
should be able to add new software sources. i use the following repository:
Server name: download.opensuse.org
Directory: /repositories/devel:/languages:/haskell/openSUSE_11.2/
This repository co
Hello,
I discovered a bug in our: Control.Concurrent.Thread
In the documentation of 'forkIO' we specify that the forked thread
inherits the blocked state of its parent. However our implementation
did not ensure this.
The newly released concurrent-extra-0.3.1 fixes this.
This release also adds t
Hi Fabian
>From the source viewable in the Haddock docs supplied with GHC
- hGetContents calls lazyRead:
hGetContents :: Handle -> IO String
hGetContents handle =
wantReadableHandle "hGetContents" handle $ \handle_ -> do
xs <- lazyRead handle
return (handle_{ haType=SemiClosedHand
Excerpts from Don Stewart's message of Wed Feb 24 16:13:38 -0500 2010:
> These are exported from vector, though.
Aha! I was looking in Data.Vector for them; they're actually in
Data.Vector.Generic. Awesome.
Cheers,
Edward
___
Haskell-Cafe mailing list
Hi Stephen
Thank you very much, this indeed does the trick!
Using UnsafeIO, however, leaves a creepy unsafe feeling...
I don't fully understand though why it is unsafe. Doesn't hGetContents do
the exact same thing (i.e. reading from IO returning a lazy string) but does
not require UnsafeIO.
Fabia
Am Mittwoch 24 Februar 2010 21:25:04 schrieb Gwern Branwen:
> 2010/2/23 Jonas Almström Duregård :
> > Hi Rafael,
> >
> > I assume you will perform this operation on some very large lists, or
> > performance would not be an issue. Have you tested if your optimized
> > version is better than your ini
ezyang:
> Excerpts from Bulat Ziganshin's message of Wed Feb 24 14:48:53 -0500 2010:
> > > I'd be really curious about techniques that permit mutation during
> > > the construction of functional datastructures; this seems like a cool
> > > way to get fast performance w/o giving up any of the benefi
ezyang:
> Hey guys, an update!
>
> It turns out, Clojure is using mutation under the hood during its
> initial data structure generation to make populating the hash-map
> blazingly fast. When I force it to use the purely functional
> interface, the performance is much closer to Haskell's.
>
>
Excerpts from Bulat Ziganshin's message of Wed Feb 24 14:48:53 -0500 2010:
> > I'd be really curious about techniques that permit mutation during
> > the construction of functional datastructures; this seems like a cool
> > way to get fast performance w/o giving up any of the benefits of
> > immuta
On Wednesday 24. February 2010 21.47.56 Andrew Coppin wrote:
> no ammount of prodding YaST will convince it that
> it's possible to install anything remotely Haskell-related
if you open the software manager and go to configuration → repositories, you
should be able to add new software sources. i
OK, I imagined to install OpenSUSE 11.2. However, I can't find a way to
make it install either GHC or the Haskell Platform. A quick Google
search turns up a folder on download.opensuse.org which is stuffed full
of Haskell stuff, yet no ammount of prodding YaST will convince it that
it's possibl
Ben Millwood schrieb:
> On Wed, Feb 24, 2010 at 1:24 PM, Christian Maeder
> wrote:
>> 1. break the line after "do"
>> (to avoid a layout change when change name or arguments of float' or
>> rename the variable "e")
>
> You can also break it immediately before do, which I think is
> sometimes more
2010/2/23 Jonas Almström Duregård :
> Hi Rafael,
>
> I assume you will perform this operation on some very large lists, or
> performance would not be an issue. Have you tested if your optimized
> version is better than your initial one?
>
> You should compare your implementation against something l
=
Second Call for Papers
ICFP 2010: International Conference on Functional Programming
Baltimore, Maryland, 27 -- 29 September 2010
http://www.icfpconference.org/icfp2010
===
Hello Edward,
Wednesday, February 24, 2010, 10:32:59 PM, you wrote:
> I'd be really curious about techniques that permit mutation during
> the construction of functional datastructures; this seems like a cool
> way to get fast performance w/o giving up any of the benefits of
> immutability. Unfo
On Feb 24, 2010, at 12:25 , Bardur Arantsson wrote:
It's a huge amount of data since it's streaming ~900Kb/s (or
thereabouts). I don't think it's really practical to look through
all that to try to figure out exactly when the problem occurs.
Given what we're looking for, I think you can igno
Hey guys, an update!
It turns out, Clojure is using mutation under the hood during its
initial data structure generation to make populating the hash-map
blazingly fast. When I force it to use the purely functional
interface, the performance is much closer to Haskell's.
Haskell Cl
On Feb 24, 2010, at 08:53 , Fabian Roth wrote:
main = do messages <- readLazy
mapM_ (\x -> putStr $ show x ++ "\n") $ messages
Regardless of anything else going on, that second line will force
everything to be read immediately.
--
brandon s. allbery [solaris,freebsd,perl,pugs,hask
On 16 February 2010 17:57, Neil Mitchell wrote:
> Hi Serguey,
>
> A GHC 6.10.4 version of Gtk2hs:
>
> http://www.mail-archive.com/gtk2hs-de...@lists.sourceforge.net/msg00340.html
>
> I used to recommend Gtk2hs over wxHaskell for GUI development as there
> was always a version that worked on Window
On Wed, Feb 24, 2010 at 10:11 AM, Johann Höchtl wrote:
>
> Will this eg mean
>
> * interoperability between LLVM assemblies for free
>
* plugable garbage collectors
>
Keep in mind the LLVM GHC backend still uses the separate Haskell stack and
uses a custom calling convention, so LLVM's garbage co
Günther Schmidt wrote:
> I've been thinking a lot lately about heterogeneous and extensible data
> structures for which HList certainly offers a solution.
>
> While HList is implemented through type-level programming I wonder if I
> can achieve similar results through value-level programming alone
On Feb 24, 2010, at 05:19 , Roman Cheplyaka wrote:
Well, this agrees with POSIX. So still I don't see the difference
between "$@" and ${1+"$@"}.
The difference is that Unix /bin/sh predates POSIX, and on systems
that usefully support a notion of backward compatibility (nostly
commercial, b
On Feb 24, 2010, at 02:18 , Roman Cheplyaka wrote:
#! /bin/sh
./prog --RTS ${1+"$@"}
The longer specification above should work with whatever /bin/sh is
around, whether it's Solaris /sbin/sh, FreeBSD's sh, general Linux
bash, Debian/Ubuntu dash, etc.
Are you referring to some Solaris shell b
On 2010-02-24 05:10, Brandon S. Allbery KF8NH wrote:
On Feb 21, 2010, at 20:17 , Jeremy Shaw wrote:
The PS3 does do something though. If we were doing a write *and* read
select on the socket, the read select would wakeup. So, it is trying
to notify us that something has happened, but we are not
Quoth Roman Cheplyaka ,
...
> Well, this agrees with POSIX. So still I don't see the difference
> between "$@" and ${1+"$@"}.
Whatever the standards etc. may say, I believe "$@" is reliably the
same as ${1+"$@"}, for old Bourne shells and new.
Donn
_
Am Mittwoch 24 Februar 2010 14:25:20 schrieb Ertugrul Soeylemez:
> Jonas Almström Duregård wrote:
> > >>noneRepeated xs = xs == nub xs
> > >
> > > Not quite as bad, nub is O(n^2)
> >
> > You are correct of course. Still, it will probably be a bit less
> > inefficient if the length of the lists are
Hi Fabian
You need to yield with unsafeInterleaveIO to allow some of the list to
be be consumed.
Something like this (which never terminates of course, but do produce output):
import System.IO.Unsafe
import Control.Monad
main = do messages <- readLazy
mapM_ (\x -> putStr $ show x ++
Hi,
no, it's absolutely not urgent. I'm just in early stage with building a
Happstack webpage and testing via GHCi works fine.
The problem occurs on a Windows XP machine with hsql-1.7.1,
hsql-mysql-1.7.1, GHC-6.10.4 and MySQL Server 5.1. Last year I posted an
instruction on how I got hsql-my
On Wed, Feb 24, 2010 at 1:53 PM, Fabian Roth wrote:
> Hi all,
> I am trying to read structured data from a socket and return a lazy list of
> records. However, the socket reading operation seems to be strict and never
> returns (until stack overflow).
>
This is expected behaviour. Normal sequenci
On Wed, Feb 24, 2010 at 12:54:51 +, Andy Gimblett wrote:
> That raises the question: what is the right place? It seems to me
> that the defaults are not the right defaults for this case. --global
> should probably go to /Applications, and --user should perhaps go to ~/
> Applications (th
On Feb 22, 2:57 am, Don Stewart wrote:
> TheLLVMbackend looks very promising -- considering we've not even
> begun to explore the optimization pipeline at the level.
>
The mere numbers on this tiny snipets look definitely promising.
I also read through http://hackage.haskell.org/trac/ghc/wiki/
On Wed, Feb 24, 2010 at 1:24 PM, Christian Maeder
wrote:
> 1. break the line after "do"
> (to avoid a layout change when change name or arguments of float' or
> rename the variable "e")
You can also break it immediately before do, which I think is
sometimes more clear.
___
Hi all,
I am trying to read structured data from a socket and return a lazy list of
records. However, the socket reading operation seems to be strict and never
returns (until stack overflow). Here's some simplified code to reproduce the
problem:
import Control.Monad
main =
Jonas Almström Duregård wrote:
> >>noneRepeated xs = xs == nub xs
>
> > Not quite as bad, nub is O(n^2)
>
> You are correct of course. Still, it will probably be a bit less
> inefficient if the length of the lists are compared (as opposed to the
> elements):
>
> noneRepeated xs = length xs == len
Andy Gimblett schrieb:
> For the record, here's the final improved version:
Hi Andy,
I hope you don't mind if I make some style comments to your "final" version.
1. break the line after "do"
(to avoid a layout change when change name or arguments of float' or
rename the variable "e")
2. The "t
Hi all,
Last week I quietly released v0.1.0 of cabal-macosx, providing support
for building OSX application bundles (e.g. and in particular for GUIs
created using wxHaskell and gtk2hs - hence all the cross-posting):
http://hackage.haskell.org/package/cabal-macosx
I'm now soliciting input o
> From: Magnus Therning
>
> How do people who like unit testing / property testing deal with export lists?
>
> I often find that I do want an export list to reduce clutter in the
> finished code, but for testing I'd like to expose everything in a
> module. Is there a nice way to deal with this (u
On Wed, Feb 24, 2010 at 10:41, Arnaud Bailly wrote:
> Maybe you just want to test what's in your export list which
> represents the public interface of your code. And if you cannot write
> a test that exercise private implementation through the public
> interface, then maybe there is a design prob
* Magnus Therning [2010-02-24 09:11:54+]
> On Wed, Feb 24, 2010 at 07:18, Roman Cheplyaka wrote:
> > * Brandon S. Allbery KF8NH [2010-02-24 00:02:12-0500]
> >> On Feb 22, 2010, at 03:36 , Roman Cheplyaka wrote:
> >> >* Anthony Cowley [2010-02-21 14:15:00-0500]
> >> >>#! /usr/bin/env bash
>
* Artyom Kazak [2010-02-24 10:23:07+0200]
> 2010/2/24 Brandon S. Allbery KF8NH :
> > On Feb 22, 2010, at 03:36 , Roman Cheplyaka wrote:
> >>
> >> * Anthony Cowley [2010-02-21 14:15:00-0500]
> >>>
> >>> #! /usr/bin/env bash
> >>> ./prog --RTS $*
> >>
> >> ./prog --RTS "$@"
> >>
> >> Otherwise it
I have uploaded to hackage an interface to the simplex algorithm based
on GLPK. It is a very early version, it will probably have lots of
problems. In the future I would like to add support for integer
variables (MIP). Any suggestion is welcome.
This is an example taken from "glpk-utils":
htt
Hello Brandon,
Wednesday, February 24, 2010, 8:08:41 AM, you wrote:
>> I feel that ghci code executing speed in guest os is 1.5~2x faster
>> than host os
> My guess is that GHC (and the GHC RTS) on win32 is using a POSIX
> emulation layer supplied by mingw32 for all system calls, introducing
>
How do people who like unit testing / property testing deal with export lists?
I often find that I do want an export list to reduce clutter in the
finished code, but for testing I'd like to expose everything in a
module. Is there a nice way to deal with this (using the C
pre-processor would not q
On Wed, Feb 24, 2010 at 07:18, Roman Cheplyaka wrote:
> * Brandon S. Allbery KF8NH [2010-02-24 00:02:12-0500]
>> On Feb 22, 2010, at 03:36 , Roman Cheplyaka wrote:
>> >* Anthony Cowley [2010-02-21 14:15:00-0500]
>> >>#! /usr/bin/env bash
>> >>./prog --RTS $*
>> >
>> > ./prog --RTS "$@"
>> >
>> >
2010/2/24 Brandon S. Allbery KF8NH :
> On Feb 22, 2010, at 03:36 , Roman Cheplyaka wrote:
>>
>> * Anthony Cowley [2010-02-21 14:15:00-0500]
>>>
>>> #! /usr/bin/env bash
>>> ./prog --RTS $*
>>
>> ./prog --RTS "$@"
>>
>> Otherwise it will work wrong if arguments contain quoted field
>> separators (
58 matches
Mail list logo