On Mon, Sep 17, 2007 at 07:32:53PM +0800, L.Guo wrote:
I have toolchain for the targer system. Using which, I can
compile on PC and run the program on the embed system.
This isn't something that anyone's ever done with GHC, to the best of my
knowledge. You'd probably have to get your hands
On Sun, Sep 09, 2007 at 05:38:03PM +0200, Sven Panne wrote:
On Sunday 09 September 2007 16:40, Andrew Coppin wrote:
I have the following page bookmarked:
http://haskell.org/ghc/docs/latest/html/libraries/
I'd like to ask 2 things.
1. Would it be possible to make the *huge* list of
On Sun, Aug 26, 2007 at 01:35:33PM +0100, Andrew Coppin wrote:
Isaac Dupree wrote:
Except that (for no particularly good reason) : is a reserved symbol
Really? That's interesting... AFAIK, according to the Report, it
shouldn't be.
It is; from
On Sun, Aug 26, 2007 at 01:20:52AM -0700, Alex Jacobson wrote:
I'd like to have code not compile if it doesn't pass the tests.
Is there a way to use TH to generate compiler errors if the tests don't
pass?
This should do it, in a different module to that which defines runtests:
$( case
On Wed, Aug 22, 2007 at 01:27:00PM -0500, Rich Neswold wrote:
newtype App a = App (ReaderT Connection (CGIT IO) a)
deriving (Monad, MonadIO, MonadReader Connection)
Unfortunately, when another module tries to actually use the monad, I
get warnings about No instance for (MonadCGI App).
On Wed, Aug 22, 2007 at 01:38:39PM -0400, Thomas Hartman wrote:
$ runghc -f /usr/local/bin/ghc-6.6.1 arghandling-nice.hs
does nothing.
Contrary to the usage message, you aren't actually allowed a space after
-f in 6.6.1 (but you are in 6.7). Use
runghc -f/usr/local/bin/ghc-6.6.1
On Thu, Aug 16, 2007 at 09:39:54AM -0400, Thomas Hartman wrote:
The programs included with the Ubuntu system are free software;
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
Which we'll further canonicalise into: i386-unknown-linux
checking
On Sat, Aug 11, 2007 at 11:44:17AM +0200, Marc A. Ziegert wrote:
those extralibs seem to be installed in
/usr/local/lib/ghc-6.7.20070810/lib/
but registered in
ghc-6.7.20070810/driver/package.conf.inplace
instead of
/usr/local/lib/ghc-6.7.20070810/package.conf
Now fixed, thanks.
By
Hi Austin,
On Sat, Aug 11, 2007 at 11:13:38PM -0500, Austin Seipp wrote:
(there is no darcs repo yet, although I have emailed someone about a
possible account for darcs.haskell.org.)
http://community.haskell.org/admin/ is probably a better fit.
Thanks
Ian
On Thu, Aug 02, 2007 at 12:17:06PM -0700, brad clawsie wrote:
as far as i know, the haskell standard does not define a basic Int
type that is limited to positive numbers.
Haskell 98 doesn't have such a type, no, but in today's libraries there
is Data.Word.Word. Operations like subtraction will
On Sun, Jul 29, 2007 at 10:34:10AM -0700, Bryan O'Sullivan wrote:
Simon Marlow was going to look into this problem a few months ago, but I
don't know if he's had a chance to.
It's fixed in the HEAD:
http://hackage.haskell.org/trac/ghc/ticket/724
Thanks
Ian
On Thu, Jul 26, 2007 at 08:17:06PM -0400, anon wrote:
but one could likewise dismiss the entire layout business as a
needlessly complicated way to save a few keystrokes if one were so
inclined.
The main point of layout, in my eyes, is to make code more readable.
It achieves this both by
Hi Dan,
On Fri, Jul 20, 2007 at 02:12:12PM -0700, Dan Piponi wrote:
On Unix-like OSes:
If I run ghc test.hs and then run ghci test.hs, ghci fails to load
up my code. I have to touch test.hs and then run ghci. I can
understand ghci refusing to recompile something it thinks it has
already
On Sat, Jul 14, 2007 at 05:26:27PM +0100, Claus Reinke wrote:
(if you post material
you may later want to use in your book, or interim results from your
research projects; remember, anything on the wiki is free for all, so
anyone could republish it if it ends up there..)?
(sorry if you
Hi Darrell,
On Mon, Jul 09, 2007 at 05:48:47PM -0700, Lewis-Sandy, Darrell wrote:
I am having trouble exporting multiple instances of a polymorphic function
similar to the example in the Haskell 98 Foreign Function Interface 1.0
addendum (page 6). My specific code is below:
Thanks for the
On Fri, Jul 13, 2007 at 09:35:09AM +0100, Malcolm Wallace wrote:
Yes, the sheer volume of posts is definitely becoming a problem (for me,
at least).
The Haskell lists are quite peculiarly named; the haskell@ list is
pretty much what would be haskell-announce@ anywhere else, and
haskell-cafe@
On Thu, Jul 05, 2007 at 06:08:45PM +0100, Duncan Coutts wrote:
On Thu, 2007-07-05 at 17:51 +0100, Neil Mitchell wrote:
- Found that on hackage, downloaded and built OK. Lots of scary
warnings about happy, greencard etc, not being found during configure,
but let's go on.
I've
Hi Andrew,
On Wed, Jul 04, 2007 at 07:26:48PM +0100, Andrew Coppin wrote:
Writing documentation for libraries is one way in which ordinary
Haskell users can really contribute to the Haskell community. It’s not
hard to do (grab the Darcs repo, type away), and it’s widely appreciated.
On Thu, Jun 21, 2007 at 05:39:12PM +0300, Bit Connor wrote:
now - getCurrentTime
2007-06-21 13:48:44.298699 UTC
formatTime defaultTimeLocale %s now
1182433724
formatTime defaultTimeLocale %Q now
%q also always gives me an empty string.
It seems to work OK for me with GHC 6.6.1 and
On Wed, Jun 27, 2007 at 09:42:29PM -0700, Justin Bailey wrote:
Any feedback, let me know. Thanks!
Thanks for looking at this, Justin! Looks fine to me.
Ian
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
On Fri, Jun 22, 2007 at 11:37:15AM -0700, Dave Bayer wrote:
z = r Prelude.^ 3
I don't know if (^) in particular is what is causing you problems, but
IMO it has the wrong type; just as we have
(!!) :: [a] - Int - a
genericIndex :: (Integral b) = [a] - b
On Mon, Jun 18, 2007 at 05:07:19PM +0200, Daniel Fischer wrote:
Plugin.hs:46:7:
Could not find module `Text.Regex':
it is a member of package regex-compat-0.71, which is hidden
which would be easy to fix if regex-compat-0.71 WERE hidden, bu it's NOT,
it's
definitely exposed.
On Fri, Jun 15, 2007 at 12:40:40PM +0200, Christian Maeder wrote:
Download the new binary dist:
http://www.informatik.uni-bremen.de/agbkb/forschung/formal_methods/CoFI/hets/pc-solaris/versions/new-ghc-6.6.1-i386-unknown-solaris2.tar.bz2
Ian, could you replace
On Thu, Jun 14, 2007 at 08:27:36PM -0700, Jason Dagit wrote:
On 6/14/07, David Roundy [EMAIL PROTECTED] wrote:
src/Darcs/Patch/Show.lhs:50:0:
Quantified type variable `y' is unified with another quantified type
variable `x'
When trying to generalise the type inferred for
On Mon, Jun 04, 2007 at 10:45:30AM +0100, Neil Mitchell wrote:
On 6/4/07, Simon Peyton-Jones [EMAIL PROTECTED] wrote:
Perhaps you mean that reify doesn't work on type constructors? (E.g.
reify ''Maybe).
It should -- if you think it doesn't can you concoct a test case and
submit it?
On Tue, May 29, 2007 at 12:41:19PM -0400, Isaac Dupree wrote:
Simon Peyton-Jones wrote:
| I wish the compilers would allow more fine grained switches on languages
| extensions. -fglasgow-exts switches them all on, but in most cases I'm
| interested only in one. Then typing errors or design
On Sun, May 27, 2007 at 01:32:40AM +0100, Neil Mitchell wrote:
Sadly, it doesn't seem to work for me. Here are the tests I've been
using, the results I get, and what I would have liked. All are GHC 6.6
on Windows.
-- TEST 1
import System.TimeoutGHC
main :: IO ()
main = do
r -
On Sat, May 26, 2007 at 08:12:13PM +0100, Andrew Coppin wrote:
It's too large and complicated to use for small things. E.g., if you
want to just dash off a little something that needs to evaluate an
expression... Well, you can use the GHC API. But this is highly
nontrivial. You get the
On Mon, May 07, 2007 at 10:43:04PM -0500, Josiah Manson wrote:
problem? Maybe, but I still think the behavior feels like deadlock, because
sometimes compilation hangs while sometimes it does not, and when it hangs
there is no CPU usage.
Can you get ghc -v output of (a) it hanging and (b) it
Sorry, please ignore.
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org [EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell-cafe
On Thu, May 10, 2007 at 06:13:16PM +0100, Neil Mitchell wrote:
Also remember that evaluating an expression in Haskell is _really_
hard!
Really? Looks pretty damn simple to me...
In that case I throw down the challenge of writing an interpetter that
takes a Haskell syntax tree and
On Thu, May 10, 2007 at 07:24:51PM +0100, Andrew Coppin wrote:
On the other hand, parsing Haskell input is intractably hard. Whitespace
actually matters, which makes the program to parse Haskell horrendusly
complex.
Do you know about the algorithm for converting Haskell source into
a
On Wed, Apr 18, 2007 at 09:12:30PM -0700, David Roundy wrote:
I just want to read in a file full of Doubles (written in binary format
from C++)
Note that if you write double's from C++ then you need to read CDoubles
in Haskell and then realToFrac them (which will presumably be optimised
out
On Tue, Apr 17, 2007 at 11:42:40PM -0400, Brian Alliet wrote:
Perhaps we just don't care about ARM or other arches where GHC runs that
Are there really any architectures supported by GHC that don't use IEEE
floating point? If so GHC.Float is wrong as isIEEE is always true.
The one most
Hi Scott,
On Mon, Apr 09, 2007 at 10:03:55AM -0600, Scott Bell wrote:
Have you got a complete (but preferably small) program showing the
problem?
Great example, thanks!
Sorry for the delay in tracking it down.
main :: IO ()
main = do (_, h, _, p) - runInteractiveCommand telnet nyx.nyx.net
On Fri, Apr 13, 2007 at 07:32:20AM -0400, [EMAIL PROTECTED] wrote:
Quoting Thomas Hartman [EMAIL PROTECTED]:
Does that mean you can have the k minima in O(n) time, where n is
length of list, which would seem to be an improvement?
It's worth considering what the theoretical minimum is.
On Fri, Apr 06, 2007 at 01:44:01PM -0600, Scott Bell wrote:
Ooops! It seems that this doesn't behave well with a -threaded
RTS. I get an EOF on handles that I know for a fact shouldn't
be receiving them. It still works well without -threaded, but
does anyone know why I'm getting this behavior?
On Fri, Mar 30, 2007 at 04:36:32PM +1000, Chris Witte wrote:
I'm tying to compile GHC under mingw (winxp with mingw no cygwin),
Loading package base ... linking ... ghc.exe: unable to load package `base'
ghc.exe:
C:/msys/1.0/local/HSbase.o: unknown symbol `_gettimeofday'
any ideas on
I've submitted:
http://hackage.haskell.org/trac/haskell-prime/ticket/124
which I hope covers the essence of the result of this thread.
Thanks
Ian
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
[reply-to set; dropping libraries]
On Sun, Mar 25, 2007 at 04:33:51PM +0100, David House wrote:
On 25/03/07, Ian Lynagh [EMAIL PROTECTED] wrote:
I've submitted:
http://hackage.haskell.org/trac/haskell-prime/ticket/124
which I hope covers the essence of the result of this thread
On Sat, Mar 24, 2007 at 01:46:33PM +, Dominic Steinitz wrote:
Thanks. I'm trying to build just SHA1 but I am getting the following linker
errors. Do you know what option I should be adding?
[EMAIL PROTECTED]:~/sha11 ghc -o perfTest
perfTest.hs -iIgloo/darcs-unstable/src --make -lz
On Fri, Mar 23, 2007 at 02:18:50PM +0100, Martin Huschenbett wrote:
-- The type I want to get.
readValue' :: Field - (forall s. SqlBind s = Maybe s) - Value
-- First trial:
readValue' fld s =
if isJust s then readValue fld (fromJust s) else emptyValue fld
Is there a reason you don't
On Thu, Mar 22, 2007 at 06:13:00PM +0300, Dmitri O.Kondratiev wrote:
succeed :: b - Parse a b
*Before looking at 'succeed' function definition* one may think that
'succeed' is a function of *one* argument of type 'b' that returns object of
type 'Parse a b'.
Yet, function definition
On Sun, Mar 18, 2007 at 05:47:21PM +, C Rodrigues wrote:
Type synonyms aren't applied as I would expect during kind checking.
What's going on here?
type WithList a b = b [a]
type FooPair a b = (b, a - b)
-- error: `WithList' is applied to too many type arguments
ints1 :: WithList
On Fri, Mar 16, 2007 at 09:52:10PM -0700, Conal Elliott wrote:
BTW, to get hs-plugins to build, I changed two lines in
hs-plugins/configure.
As it happens, I sent Don a similar patch last night, so hopefully it'll
be fixed in darcs soon.
First I tried tr -d '\n', but it didn't work, and I
Hi Seth,
On Fri, Mar 16, 2007 at 01:53:49PM -0500, Seth J. Fogarty wrote:
: ghc -i/home/sfogarty/lib/lp_solve_5.5 mipFFI.c
mipFFI.c:1:0: lpkit.h: No such file or directory
ghc -I/home/sfogarty/lib/lp_solve_5.5 mipFFI.c
should work. If not, add -v to the commandline to see what it is
On Sun, Mar 11, 2007 at 08:18:44PM +, Dominic Steinitz wrote:
I have re-written the sha1 code so that it is (hopefully) easy to see that it
faithfully implements the algorithm (see
http://www.itl.nist.gov/fipspubs/fip180-1.htm). Having got rid of the space
leak, I have been trying to
On Tue, Mar 13, 2007 at 09:41:47PM +0300, Bulat Ziganshin wrote:
Tuesday, March 13, 2007, 9:06:31 PM, you wrote:
forkOS should work as well, assuming you have OS threads, like in linux 2.6.
You should probably be using the -smp compiler flag and not the -threaded
compiler flag, I'm
On Sat, Mar 03, 2007 at 12:18:44PM -0500, Isaac Dupree wrote:
Here are some (String - Bool) to test lines during parsing.
I haven't looked at your definitions in detail, but I think they might
be easier to follow (and, ultimately, include in the report) if they
were written in a BNF style like
On Tue, Feb 27, 2007 at 05:36:29AM +0100, Dunric wrote:
Graphics/UI/SDL/Rotozoomer.hs:15:7:
Could not find module `Foreign.C':
it is a member of package base, which is hidden
This is normally caused by forgetting to include
build-depends: base
in a .cabal file. When cabal
On Wed, Feb 28, 2007 at 05:48:09PM -0500, Isaac Dupree wrote:
Trying to implement literate haskell[*], I realized several
ways in which the correct behavior for unliterating (especially with
regard to errors) was unclear. I have several cases which ghc, hugs
and Haskell 98 have differing
On Sat, Feb 24, 2007 at 12:47:19PM +0100, Henk-Jan van Tuyl wrote:
Is this something for the list at
http://haskell.org/mailman/listinfo
That's generated by mailman, and as far as I know can't be easily
altered.
(Maybe this page could be moved to haskellwiki?)
Perhaps adding a list of
On Fri, Feb 02, 2007 at 01:54:13PM +, Martin Percossi wrote:
Hello, is there a haskell library that provides facilities to read and
use the tzfile format [1], or equivalent in Windows?
Not as far as I am aware.
Thanks
Ian
___
Haskell-Cafe
On Mon, Jan 22, 2007 at 03:26:38PM +0200, Yitzchak Gale wrote:
Can someone with access to darcs.haskell.org
please fix this library? darcs get currently does not
seem to work for it.
http://darcs.haskell.org/numeric-quest/
I've fixed the permissions, although applying patches in the
Hi Pedro,
On Fri, Jan 05, 2007 at 05:51:43PM +, Pedro Baltazar Vasconcelos wrote:
I noticed that GHC generates slower code on an Linux amd64 bit platform than
the 32-bit version on a cheaper 32-bit machine.
CPUTime for running sieve of Erathostenes to generate 10,000 primes:
Is it
Hi Reto,
On Thu, Dec 21, 2006 at 10:11:22PM -0800, Reto Kramer wrote:
I've tried to thread the two states (StateA and StateB) using a chain
of StateT ... StateT ..., but couldn't really make that work.
That is how I would write it; I have attached code for your example.
It
seems
On Sun, Dec 31, 2006 at 02:39:33PM +, Ian Lynagh wrote:
http://haskell.org/ghc/docs/6.6/html/building/sec-porting-ghc.html
I've been reminded that the building guide is being moved to the wiki,
so http://hackage.haskell.org/trac/ghc/wiki/Building (in particular
http://hackage.haskell.org
Hi Brian,
On Mon, Dec 18, 2006 at 10:07:19PM -0800, Brian McQueen wrote:
I was trying to get a ghc going in my shell account the other day and
found that the data at
http://haskell.org/ghc/docs/6.6/html/building/sec-porting-ghc.html
didn't apply at all.
The system is a netbsd alpha which
On Fri, Dec 15, 2006 at 10:05:38AM +, Felix Breuer wrote:
On Thu, 14 Dec 2006 15:31:54 -0800, David Roundy [EMAIL PROTECTED] wrote:
main = do putStrLn strict foldl1
print $ foldl1' (\a b - a + 1) $ [1..largenum]
putStrLn lazy foldl1
print $ foldl1 (\a
Hi Conrad,
On Mon, Dec 11, 2006 at 09:56:35AM +0900, Conrad Parker wrote:
I received the following bug report from someone trying to build HOgg
on Fedora Core 6 (FC6) with its ghc66 package. The build error is:
Could not find module `Data.Map':
it is a member of package base, which
On Sat, Nov 25, 2006 at 11:28:13PM +, Ivan Tomac wrote:
I've noticed that code compiled with -threaded doesn't like +RTS -
Nthread count as an argument.
This seems to be the case with both the binary distribution of GHC
6.6 at www.haskell.org/ghc as well as the version I built from
On Mon, Nov 13, 2006 at 12:44:05PM -0800, Donn Cave wrote:
Threads, maybe? Is blocking I/O seriously incompatible with the GHC
threading model (or one of the models)?
The problem is that a blocking IO call would block all threads. We could
execute all such calls in their own OS thread, but
On Wed, Nov 29, 2006 at 10:57:52AM +, Neil Davies wrote:
In order to get low jitter you have to deliberately wake up early and
spin - hey what are all these extra cores for! - knowing the
quantisation of the RTS is useful in calibration loop for how much to
wake up early.
Ah, I see.
On Wed, Nov 29, 2006 at 06:14:56PM +, Conor McBride wrote:
Mmm.lhs:15:1:
Contexts differ in length
When matching the contexts of the signatures for
foo :: forall (m :: * - *). (Monad m) = Thing - m Int
goo :: Thing - (Maybe Int - Int) - Int
The signature contexts in a
On Sun, Dec 03, 2006 at 08:13:37PM +0100, Arie Peterson wrote:
Does anyone know what could cause this locking and/or how to prevent it?
Nothing else springs to mind. Are you able to send an example that shows
the problem? (obviously the smaller the example, the better).
Thanks
Ian
On Wed, Nov 22, 2006 at 03:37:05PM +, Neil Davies wrote:
Ian/Simon(s) Thanks - looking forward to the fix.
I've now pushed it to the HEAD.
It will help with the real time enviroment that I've got.
Lazy evaluation and GHC's garbage collector will probably cause
headaches if you want true
Hi Niko,
On Thu, Nov 23, 2006 at 12:11:43PM +0200, Niko Korhonen wrote:
I have the following code whose purpose is to add dither (noise) to a given
array. The code looks very straightforward but apparently it has a memory
leak somewhere. Here I try to run the algorithm for an array of
On Sun, Oct 15, 2006 at 08:37:19AM -0400, Tamas K Papp wrote:
I noticed that searching on Haskell.org (using the Search feature at
the bottom) doesn't work as I expected. For example, searching for
memoise produces no results.
This is searching haskellwiki.
On Sun, Oct 15, 2006 at 01:42:37PM +0100, Ben Moseley wrote:
Just thought I'd send out a quick mail to see if there are any other
Haskellers based in London who might be interested in getting
together occasionally.
Did you see
On Tue, Oct 10, 2006 at 01:31:58PM +0200, Matthias Fischmann wrote:
What qualifies as constant applicable form, and why is it not
labelled in a more informative way?
CAFs are, AIUI, things that are just values (i.e. things that don't take
an argument) that have been floated up to the top
On Tue, Oct 10, 2006 at 05:21:52PM +0200, Matthias Fischmann wrote:
Compiling with -caf-all might give you more useful information.
Oops. I thought i had that in my Makefile, but appearently i was
wrong... If I add it, this is what happens:
$ ghc -prof -caf-all Main.hs -o Main # (ghc
On Sat, Aug 26, 2006 at 10:15:17PM +0300, Misha Aizatulin wrote:
Neil Mitchell wrote:
*Main show $ A `And` A
A And A
For me, using GHCi 6.4.2 + Windows, I get:
A `And` A
I installed GHC 6.4.2 now (on Linux). It really does print A `And`
A, but still doesn't read it. Would you
On Sun, Jul 30, 2006 at 09:44:25AM +0100, David House wrote:
I've seen two definitions of a 'strict function', which I'm trying to
unite in my mind:
1) f is strict iff f _|_ = _|_.
2) f is strict iff it forces evaluation of its arguments.
There is a large sticking point that in my minds
On Wed, Jul 05, 2006 at 01:03:01AM +0100, Brian Hulley wrote:
Simon Peyton-Jones wrote:
Concerning other mail on this subject, which has been v useful, I've
revised the Wiki page (substantially) to take it into account.
http://hackage.haskell.org/trac/ghc/wiki/GhcPackages
Further input
On Fri, Jun 30, 2006 at 03:45:57PM -0700, mvanier wrote:
I'm at a loss here. Somehow, the SplitObjs option doesn't seem to be doing
the job. Any suggestions would be appreciated.
It looks like gcc 4.1 is floating all the
__asm__(\n__stg_split_marker:);
results to the top of the
On Mon, Jun 26, 2006 at 04:20:16PM +0100, Brian Hulley wrote:
I don't think this solves the whole problem. Suppose M1 needs to use A.B.C
from P1 *and* A.B.C from P2
For a simple example of a case where this might arise, suppose M1 is the
migration module for data (stored in a database,
Hi Bulat,
On Wed, Jan 18, 2006 at 12:10:45AM +0300, Bulat Ziganshin wrote:
Monday, January 16, 2006, 12:52:42 AM, you wrote:
IL OK, I have one library which provides
IL inflate :: [Word8] -- The input
IL - ([Word8], -- A prefix of the input inflated (uncompressed)
IL
On Wed, Jan 11, 2006 at 03:00:45PM +, Simon Marlow wrote:
Ian Lynagh wrote:
On Wed, Jan 11, 2006 at 10:36:47AM +, Simon Marlow wrote:
My suggestion: don't use the lazy state monad if you can help it.
But a strict state monad would force everything to be loaded into memory
at once
On Wed, Jan 11, 2006 at 10:36:47AM +, Simon Marlow wrote:
My suggestion: don't use the lazy state monad if you can help it.
But a strict state monad would force everything to be loaded into memory
at once, right?
What would you suggest I use instead?
Or do I just have to tread carefully
Hi all,
I am having space issues with some decompression code; I've attached a
much simplified version as Test1.hs.
At the bottom (foo/bar) is the equivalent of deflate. This should be a
standalone module which doesn't know about the rest.
In the middle (readChunks) is the equivalent of
On Tue, Jan 10, 2006 at 05:28:03PM +, Chris Kuklewicz wrote:
I'll make a guess...
Ian Lynagh wrote:
Hi all,
foo :: String - (String, String)
foo = runState bar
bar :: SecondMonad String
bar = do inp - get
case inp of
[] - return
On Tue, Jan 10, 2006 at 04:44:33PM +, Ian Lynagh wrote:
readChunks :: FirstMonad String
readChunks = do xs - get
if null xs then return []
else do let (ys, zs) = foo xs
put zs
On Thu, Dec 08, 2005 at 09:23:22AM -0500, David Roundy wrote:
data EqContext a b = EqContext { safe_coerce :: f(a,b) - f(b,a) }
where f(a,b) is a function of two types that returns a type, so the value
of f(a,b) might be (Patch a b) or (Patch x b) or something like that.
But I'm not sure
On Sun, May 01, 2005 at 08:28:15PM +0200, Sven Panne wrote:
Gour wrote:
Nice to hear you are considering to move to darcs.
Basically I'm very happy with the working model of CVS, and subversion
darcs would allow you to locally record intermediate stages of a change,
making it easier to
On Wed, Mar 16, 2005 at 11:55:18AM +, Ross Paterson wrote:
On Wed, Mar 16, 2005 at 03:54:19AM +, Ian Lynagh wrote:
Do you have a list of functions which behave differently in the new
release to how they did in the previous release?
(I'm not interested in changes that will affect
On Sun, Mar 20, 2005 at 01:33:44AM +, [EMAIL PROTECTED] wrote:
On Sat, Mar 19, 2005 at 07:14:25PM +, Ian Lynagh wrote:
Most importantly, though: is there any way to remove this file without
doing something like an FFI import of unlink?
Is there anything LC_CTYPE can be set
On Thu, Mar 17, 2005 at 06:22:25AM +, Ian Lynagh wrote:
[in brief: hugs' (hPutStr h) now behaves differently to
(mapM_ (hPutChar h)), and ghc writes the empty string for both when
told to write \128]
Ah, Malcolm's commit messages have just reminded me of the finaliser
changes requiring
On Tue, Mar 15, 2005 at 10:44:28AM +, Ross Paterson wrote:
You can select binary I/O using the openBinaryFile and hSetBinaryMode
functions from System.IO. After that, the Chars you get from that Handle
are actually bytes.
What about the ones sent to it?
Are all the following results
On Tue, Mar 15, 2005 at 10:44:28AM +, Ross Paterson wrote:
On Mon, Mar 14, 2005 at 07:38:09PM -0600, John Goerzen wrote:
I've got some gzip (and Ian Lynagh's Inflate) code that breaks under
the new hugs with:
handle: IO.getContents: protocol error (invalid character encoding)
On Fri, Dec 03, 2004 at 10:56:24AM -0500, Jason Bailey wrote:
Would anyone know of packages out there for Haskell that support mp3's
or ogg files?
I have a (partial, I think) binding for gstreamer:
http://urchin.earth.li/~ian/minstrel/
(you only need GHC 6.3 for hcurses, hgstreamer and
On Tue, Jul 15, 2003 at 09:28:32PM -0400, Abraham Egnor wrote:
What's the difference between the ghc6 packages provided by your archive
and the ones currently in Debian unstable?
You can't install the unstable packages on a stable system (too old a
libc6 for one thing). These packages are just
Just to make sure I am interpreting the report correctly, is : meant
to be a valid qconop regardless of the precedence-level and
associativity of the qconop?
Thanks
Ian
___
Haskell-Cafe mailing list
[EMAIL PROTECTED]
On Mon, Sep 24, 2001 at 07:41:42AM -0700, Simon Peyton-Jones wrote:
| Just to make sure I am interpreting the report correctly, is
| : meant to be a valid qconop regardless of the
| precedence-level and associativity of the qconop?
I don't really understand the regardless of.. part. But,
On Wed, Sep 19, 2001 at 01:53:22PM -0400, Mark Carroll wrote:
main = let maybe_index = maybe_read word
in putStr (show (if maybe_index == Nothing then DP_Unknown else DP_Number
index) ++ \n)
where (Just index) = maybe_index
BTW, is the above a sane way of getting the
Hi all
First a brief question - is there a nicer way to do something like
#ifdef __GLASGOW_HASKELL__
#include "GHCCode.hs"
#else
import HugsCode
#endif
than that (i.e. code that needs to be different depending on if you are
using GHC or HUGS)?
Secondly, I don't know
101 - 195 of 195 matches
Mail list logo