#3115: mark ghc.cabal so that unsuspecting newbies don't try to edit it
-+--
Reporter: nr|Owner:
Type: feature request | Status: new
Priority:
#3116: missed optimisation opportunity with lazy ByteStrings
-+--
Reporter: duncan| Owner:
Type: bug | Status: new
Priority: normal|
#3119: Make ghc-6.10 use a non-executable stack (by bumping libffi)
+---
Reporter: kolmodin | Owner:
Type: feature request | Status: new
Priority: normal
#3119: Make ghc-6.10 use a non-executable stack (by bumping libffi)
-+--
Reporter: kolmodin | Owner:
Type: feature request | Status: new
Priority: normal
Hi,
I would like to use the API for ghc, so that a running program can load
a module (Foo.o) and use a function defined in that module. From the
documentation available, it seems like thatś possible, but I can´t
figure out how to do it. There is an example on the wiki, but the
explanation
Hello Ian,
2009/3/21 Ian Lynagh ig...@earth.li
On Fri, Mar 20, 2009 at 09:33:07AM +0100, José Pedro Magalhães wrote:
Bad interface file: C:\Program Files
(x86)\Haskell\syb-0.2.0.0\ghc-6.10.1\Data\Generics.hi
Something is amiss; requested module syb:Data.Generics differs
John O'Donnell wrote:
Hi,
I would like to use the API for ghc, so that a running program can load
a module (Foo.o) and use a function defined in that module. From the
documentation available, it seems like thatś possible, but I can´t
figure out how to do it. There is an example on the wiki,
John O'Donnell wrote:
That example
does indeed work, but there is no hint as to whether the running program
can then access anything defined in the module it has just loaded.
I think the running program can only access things *exported* from the module
(other functions in that module might
I just noticed that GHC (6.11.20090320) seems to compile both
f (a:b:c) =
f (a:[]) =
f [] =
and
f [] =
f (a:[]) =
f (a:b:c) =
to something like (looking at Core, but writing source)
f x = case x of { [] - ..; (a:t) - case t of { [] -..; (b:c) -..}}
That doesn't seem right to me: if I
How could you match the first case with less than two case constructs?
There are two (:) to check for, so I'm not sure what you are complaining about.
-- Lennart
On Tue, Mar 24, 2009 at 12:16 AM, Claus Reinke claus.rei...@talk21.com wrote:
I just noticed that GHC (6.11.20090320) seems to
How could you match the first case with less than two case constructs?
There are two (:) to check for, so I'm not sure what you are complaining about.
-- Lennart
The number of case constructs is needed, and since case in Core
also specifies strict contexts, perhaps there would be no
On March 23, 2009 19:46:27 Claus Reinke wrote:
My idea was that case branches correspond to conditional jumps
(though the exact correspondence and optimization has been the
subject of countless papers). If I loop through a very long list,
most of the time the test for (:) will succeed,
sylvain sylvain.na...@googlemail.com writes:
Le samedi 21 mars 2009 à 09:58 -0700, Don Stewart a écrit :
Oh boy. Compile with optimizations on please! ghc -O2 et al.
I had done that, actually, before even my first post, and knew that it
changes little to the picture, at least on my system.
On Mon, Mar 23, 2009 at 08:40:02AM +0100, Ketil Malde wrote:
I had done that, actually, before even my first post, and knew that it
changes little to the picture, at least on my system.
I think Bulat was right on the money here: you're essentially testing
the efficiency of writing
***
Call For Papers
WFLP 2009
18th International Workshop on Functional
and (Constraint) Logic Programming
Brasilia, Brazil, June, 28, 2009
http://www.dsic.upv.es/workshops/wflp09/
Hi, I am pleased to announce the first release of WinGhci.
WinGhci is a simple GUI for GHCI on Windows. It is closely based on WinHugs,
and provides similar functionality.
WinGhci project web page:
For the first time, we've got download and popularity statistics from
Hackage:
http://www.galois.com/blog/2009/03/23/one-million-haskell-downloads/
Find out if your package made the top 100, and when we reach our 1
millionth hackage download!
-- Don
Those are impressive results. Typically on programming language benchmarks,
the speed of ghc-generated code fares well against C, sometimes
outperforming it, at best being 20x faster, at worst being 3x slower. Since
it already seems fast enough, I'm astonished that jhc could make it even
faster.
On Sat, Mar 21, 2009 at 10:00 AM, Don Stewart d...@galois.com wrote:
Util/Gen.hs:6:7:
Could not find module `Control.Monad.Identity':
it was found in multiple packages: transformers-0.1.1.0 mtl-1.1.0.2
make[1]: *** [jhc] Error 1
ghc-pkg hide transformers-0.1.1.0
--
Taral
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Conal Elliott wrote:
| The question I'm asking is this: Assuming compositional semantics, can
| [[Bool]] be this simple customary three-value domain in the presence
| of an implementation-dependent [[Int]] (given that Int expressions can
| play a
Oh! I think there's a misunderstanding here. I'm not talking about
MachineInfo as visible in the types. I'm talking about Int itself having a
MachineInfo-dependent semantic model (something like MachineInfo - Z, where
MachineInfo, -, and Z are *semantic* types, not Haskell types).
Making my
And my own answer is no. Otherwise, dodgy would have value true, false,
or bottom, rather than the value true-or-false-depending-on-the-machine.
On Mon, Mar 23, 2009 at 9:39 AM, Conal Elliott co...@conal.net wrote:
Oh! I think there's a misunderstanding here. I'm not talking about
Hi Wilkes,
you may want to have a look at a simple example of how to
interop with Windows WMI using the COM package at --
http://haskell.forkio.com/com-examples
Hope it is of some help to you.
--sigbjorn
On 3/19/2009 16:49, Wilkes Joiner wrote:
I'm playing around with the com package, but
I got bitten by a bug (well, I call it bug) in bracketCD from
HSH/MissingH demonstrated by the following code
bracketCD is very useful for sysadminny one-offs, I use it all the
time, but. I suspect that unless people are very careful, this
behavior will affect other users of bracketCD, in
Sigbjorn Finne wrote:
Hi Wilkes,
you may want to have a look at a simple example of how to
interop with Windows WMI using the COM package at --
http://haskell.forkio.com/com-examples
I try compile WMIDemo.hs but recive error:
[code]
c:\htestghc --make WMIDemo.hs
[2 of 2] Compiling WMIDemo
Excerpts from Thomas Hartman's message of Mon Mar 23 09:08:41 +0100 2009:
I got bitten by a bug (well, I call it bug) in bracketCD from
HSH/MissingH demonstrated by the following code
bracketCD is very useful for sysadminny one-offs, I use it all the
time, but. I suspect that unless
Excerpts from Henning Thielemann's message of Sun Mar 22 23:58:44 +0100 2009:
On Sun, 22 Mar 2009, nicolas.pouillard wrote:
It sounds like a nice idea, it would be great to have a straight-io package
to play a bit more with explicit exceptions in things like 'IO'.
Maybe I should then
Hello all,
I'm trying to use the generic capabilities of HSTringTemplate. The
documentation claims that the package is able to automatically generate
instances of ToSElem if syb-with-class is installed but gives no further
details. I installed syb-with-class and then installed HSTringTemplate
On Mon, 23 Mar 2009, nicolas.pouillard wrote:
Excerpts from Henning Thielemann's message of Sun Mar 22 23:58:44 +0100 2009:
On Sun, 22 Mar 2009, nicolas.pouillard wrote:
It sounds like a nice idea, it would be great to have a straight-io package
to play a bit more with explicit exceptions
Excerpts from Henning Thielemann's message of Mon Mar 23 11:06:20 +0100 2009:
On Mon, 23 Mar 2009, nicolas.pouillard wrote:
Excerpts from Henning Thielemann's message of Sun Mar 22 23:58:44 +0100
2009:
On Sun, 22 Mar 2009, nicolas.pouillard wrote:
It sounds like a nice idea, it
On Mon, 23 Mar 2009, nicolas.pouillard wrote:
Excerpts from Henning Thielemann's message of Mon Mar 23 11:06:20 +0100 2009:
Yes
Then what do you mean by lifting to LazyIO to SIO actions?
Do you mean
liftSIO :: SIO a - LazyIO.T a
which says that we only lift computations that explicitly
Hi, I am pleased to announce the first release of WinGhci.
WinGhci is a simple GUI for GHCI on Windows. It is closely based on WinHugs,
and provides similar functionality.
WinGhci project web page:
Hello,
Currently I'm trying to upload a minor update of Salvia to Hackage to
fix some dependency issues but Hackage times out all the time? Both
the CLI tool and the web-interface do not react to my upload request.
Any known problems here?
Gr,
Sebastiaan.
Hi,
I just feel it is not comfortable to deal with exceptions
only within IO monad, so I defined
tryArith :: a - Either ArithException a
tryArith = unsafePerformIO . try . evaluate
and it works quite good as
map (tryArith . (div 5)) [2,1,0,5]
evaluates to
[Right 2,Right 5,Left divide by
Hello,
On Sun, Mar 22, 2009 at 04:08:59PM +0100, Alex Ott wrote:
May be providing profiling information for kcachegrind will be a good
solution? For example, there are tools for PHP, that allow to view
collected information in kcachegrind, and get interactive zooming, etc.
This is really
You should ensure that the result of evaluate is in normal form, not just weak
head normal form. You can do this with the Control.Parallel.Strategies module:
import Control.Exception(ArithException(..),try,evaluate)
import Control.Parallel.Strategies(NFData,using,rnf)
import
This is wonderful--just what I was waiting for! The application looks
beautiful, and I'm very happy that GHCi now has a matching GUI
application along the lines of WinHugs.
It would be even better if you could provide some
installation/uninstallation information. I unzipped the contents of
On Friday 20 March 2009 5:23:37 am Ryan Ingram wrote:
On Fri, Mar 20, 2009 at 1:01 AM, Dan Doel dan.d...@gmail.com wrote:
However, to answer Luke's wonder, I don't think fixAbove always finds
fixed points, even when its preconditions are met. Consider:
f [] = []
f (x:xs)
Just another couple of thoughts for possible additional improvement:
1. It would be even nicer if WinGhci added a menu entry to the
Start menu automatically, as WinHugs does.
2. For the proposed menu entry, it would also probably be a good idea
if WinGhci added a folder for that menu entry,
ChrisK hask...@list.mightyreason.com writes:
You should ensure that the result of evaluate is in normal form, not
just weak head normal form. You can do this with the
Control.Parallel.Strategies module:
import Control.Exception(ArithException(..),try,evaluate)
import
Benjamin L.Russell wrote:
This is wonderful--just what I was waiting for! The application looks
beautiful, and I'm very happy that GHCi now has a matching GUI
application along the lines of WinHugs.
Indeed - me too !
It would be even better if you could provide some
Am Montag, den 23.03.2009, 12:55 + schrieb Jens Blanck:
The above approach does not apply to my case. What I have is a
monotone function f on a partial order satisfying f x = x, for all x.
Given that the partial order is in fact a cpo this is enough to
guarantee that a least fixed point
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Rafael Cunha de Almeida wrote:
| Hello,
|
| I am writing a OpenGL program in haskell, it can be found in:
| http://github.com/aflag/galo/tree/master
| But I hope this e-mail will be self-contained :).
|
| My main function goes like this:
|
sfvisser:
Hello,
Currently I'm trying to upload a minor update of Salvia to Hackage to
fix some dependency issues but Hackage times out all the time? Both the
CLI tool and the web-interface do not react to my upload request.
Any known problems here?
Discussion taking place on libraries@
For the first time, we've got download and popularity statistics from
Hackage:
http://www.galois.com/blog/2009/03/23/one-million-haskell-downloads/
Find out if your package made the top 100, and when we reach our 1
millionth hackage download!
-- Don
Nicolas Pouillard nicolas.pouillard at gmail.com writes:
Hi folks,
We have good news (nevertheless we hope) for all the lazy guys standing there.
Since their birth, lazy IOs have been a great way to modularly leverage all
the
good things we have with *pure*, *lazy*, *Haskell* functions to
Alexandr N. Zamaraev wrote:
Sigbjorn Finne wrote:
Hi Wilkes,
you may want to have a look at a simple example of how to
interop with Windows WMI using the COM package at --
http://haskell.forkio.com/com-examples
I try compile WMIDemo.hs but recive error:
[code]
c:\htestghc --make WMIDemo.hs
Hello,
I've written something simple:
main:: IO ()
main= do lijn - getLine
putStrLn lijn
Now if I import it in Helium it will do the following:
Test main
test -- (here I'm typing test)
test
it will be displayed two times,
I was looking for a shuffling algorithm to shuffle mp3-playlists so was very
happy to see System.Random.Shuffle:
http://hackage.haskell.org/cgi-bin/hackage-scripts/package/random-shuffle-0.0.2
However I get errors,non-exhaustive patterns in function shufleTree or
extractTree depending how I call
friggin friggin ha scritto:
I was looking for a shuffling algorithm to shuffle mp3-playlists so was
very happy to see System.Random.Shuffle:
http://hackage.haskell.org/cgi-bin/hackage-scripts/package/random-shuffle-0.0.2
However I get errors,non-exhaustive patterns in function shufleTree or
I saw Miguel Mitrofanov (
http://www.nabble.com/Hugs-on-the-iphone-td19478992.html) successfully
ported Hugs to the iPhone. I'm now wondering if anyone has tried to get
Apple's blessing to put this in the App Store? It would be really great to
be able to try out little Haskell ideas as the mood
1) You'll need a terminal application first, and I'm not sure if there
is one in AppStore. In fact, I AM sure there isn't.
2) My iPod Touch is still running 1.1.4 firmware; I've heard it's not
that easy on 2.0 and later.
3) Personally, I'd love to see ghc on iPhone. It could even persuade
Unfortunately the developers agreement expressly forbids the use of
interpreters that load and run external programs. This is probably for the
simple reason that it would be almost impossible to secure, or even
guarantee that it wont exceed its space and mem usage bounds required by
AppStore apps.
Hi!
I've created a ticket for this idea:
http://hackage.haskell.org/trac/summer-of-code/ticket/1572
Please write your opinion.
I also put the source code here:
http://code.google.com/p/lambdacube/
svn checkout *http*://lambdacube.googlecode.com/svn/trunk/lambdacube-read-only
Cheers,
Csaba
On Mon, Mar 23, 2009 at 11:22 AM, Miguel Mitrofanov
miguelim...@yandex.ruwrote:
1) You'll need a terminal application first, and I'm not sure if there is
one in AppStore. In fact, I AM sure there isn't.
There's SSH terminal programs like Putty based stuff that are in the
AppStore. So that
On 23 Mar 2009, at 21:38, David Leimbach wrote:
On Mon, Mar 23, 2009 at 11:22 AM, Miguel Mitrofanov miguelim...@yandex.ru
wrote:
1) You'll need a terminal application first, and I'm not sure if
there is one in AppStore. In fact, I AM sure there isn't.
There's SSH terminal programs like
I think he means a program running on the iPhone which allows you to open a
terminal over an SSH session to other devices. The instance (I think) you're
thinking of is where the SSH *server* runs on the iPhone.
On Mon, Mar 23, 2009 at 2:46 PM, Miguel Mitrofanov miguelim...@yandex.ruwrote:
On
* Csaba Hruska csaba.hru...@gmail.com [2009-03-23 19:24:19+0100]
Hi!
I've created a ticket for this idea:
http://hackage.haskell.org/trac/summer-of-code/ticket/1572
Please write your opinion.
I also put the source code here:
http://code.google.com/p/lambdacube/
svn checkout
On Mon, Mar 23, 2009 at 11:46 AM, Miguel Mitrofanov
miguelim...@yandex.ruwrote:
On 23 Mar 2009, at 21:38, David Leimbach wrote:
On Mon, Mar 23, 2009 at 11:22 AM, Miguel Mitrofanov
miguelim...@yandex.ru wrote:
1) You'll need a terminal application first, and I'm not sure if there is
one
On Mon, Mar 23, 2009 at 11:53 AM, John Van Enk vane...@gmail.com wrote:
I think he means a program running on the iPhone which allows you to open a
terminal over an SSH session to other devices. The instance (I think) you're
thinking of is where the SSH *server* runs on the iPhone.
Yeah I
Csaba Hruska csaba.hru...@gmail.com wrote:
svn checkout
*http*://lambdacube.googlecode.com/svn/trunk/lambdacube-read-only
I think you mean
svn co http://lambdacube.googlecode.com/svn/trunk
I didn't do anything yet, except running the sample program. I get to
see an ogre head and this:
8
2009/3/23 Achim Schneider bars...@web.de
Csaba Hruska csaba.hru...@gmail.com wrote:
svn checkout
*http*://lambdacube.googlecode.com/svn/trunk/lambdacube-read-only
I think you mean
svn co http://lambdacube.googlecode.com/svn/trunk
I didn't do anything yet, except running the sample
Csaba Hruska csaba.hru...@gmail.com wrote:
I _think_ example1 is killed by SIGABRT, but I could be wrong, I've
never seen this before. Anyway, it's a strange thing.
Does the program exit immediatly after the first rendered frame?
Usually yes, sometimes I'm seeing the ogre being rotated
Doesn't Apple Store restrict applications (by policy) so they cannot generate
or execute arbitrary code? (That's the reason there's no Flash for iPhone.)
That restriction seems like it'd block any interpreter or compiler from being
sold, no?
-Michael
From: haskell-cafe-boun...@haskell.org
Miguel Mitrofanov wrote:
3) Personally, I'd love to see ghc on iPhone. It could even persuade me
to upgrade.
See the GHC-on-ARM page[1] for my work on it last summer, among others'.
GHC is tough to port because bootstrapping to new architectures has been
broken for a long time, since soon
http://www.readwriteweb.com/archives/confirmed_apple_and_adobe_coll.php
On 23 Mar 2009, at 23:29, Michael Giagnocavo wrote:
Doesn’t Apple Store restrict applications (by policy) so they cannot
generate or execute arbitrary code? (That’s the reason there’s no
Flash for iPhone.) That
Guess they ended up making an exception for Flash, finally. Will be interesting
to see how they prevent 3rd party stores from running arbitrary Flash games and
whatnot. Maybe they'll blacklist any popular sites that are stealing
marketshare from the AppStore?
-Michael
-Original
On 23 Mar 2009, at 2:20 am, Anonymous Anonymous wrote:
Hello,
I'm new to haskell, I'm wondering how can you write a function that
will do the following:
fromIntToString :: Int - String
this is a cast function to cast an Int to a String.
It cannot be. What could it possibly mean to
On Mon, Mar 23, 2009 at 04:41:04PM -0400, Braden Shepherdson wrote:
The good news is that jhc's portable C code works perfectly well -- but
of course that is simply running precompiled Haskell apps and not a
compiler or interpreter running on the device. Since jhc is not
self-hosting
You don't need to derive ToSElem -- you get the instance for free if
you derive Data. Import GenericWithClass to get the instance for Data
from syb-with-class, and import GenericStandard for use with Data from
the vanilla syb that comes with GHC.
Cheers,
Sterl.
2009/3/23 Kemps-Benedix Torsten
This is solely the reason for my interest in JHC.
The agreement doesn't specifically prohibit the use of interpreters (just
those than run external code). It also doesn't say anything about machine
generated code. The only thing one would have to ensure is that the
dependencies of JHC are all
Hi.
I have implemented a generalized shuffle function, for the
random-shuffle package
http://hackage.haskell.org/cgi-bin/hackage-scripts/package/random-shuffle
I have not yet commited the change, before that I would like to receive
some feedbacks (especially by the original author of the
On Mon, 23 Mar 2009, Xiao-Yong Jin wrote:
Hi,
I just feel it is not comfortable to deal with exceptions
only within IO monad, so I defined
tryArith :: a - Either ArithException a
tryArith = unsafePerformIO . try . evaluate
and it works quite good as
map (tryArith . (div 5)) [2,1,0,5]
Xiao-Yong Jin wrote:
Hi,
I just feel it is not comfortable to deal with exceptions
only within IO monad, so I defined
tryArith :: a - Either ArithException a
tryArith = unsafePerformIO . try . evaluate
[...]
However, I guess unsafePerformIO definitely has a reason for
its name. As I read
How long did it take you to become proficient in Haskell? By that, I mean -
how long until you were just as comfortable with Haskell as you were with
your strongest language at that time?
--
View this message in context:
http://www.nabble.com/Learning-Haskell-tp22673552p22673552.html
Sent from
I've been messing with Haskell since the Middle of January on evenings and
weekends. Just now I'm getting to the point where I can construct nontrivial
programs with little help from #haskell.
It is by no means my most proficient language, I've been coding C++ and
other languages for over 10
I second that! Haskell is a very fun and engaging language (with its
accompanying corpus of theorems, and its great community)...
My timing is a little bit longer than Rick's... I've been eyeing
Haskell for about 8 months, reading books, poking around etc. I've
started to feel
Still struggling after almost year (I learn it along with Prolog, Lua, and
many other non-C family languages), because I'm not very good at describing
solutions. My imperative background is quite strong, but I've been able to
switch more easily these days (after taking Functional Programming
78 matches
Mail list logo