Re: [Haskell] [Haskell-cafe] PROPOSAL: Record field type inference

2014-06-04 Thread John Meacham
some respects, this sounds like syntax sugar around > https://ghc.haskell.org/trac/ghc/wiki/Records/OverloadedRecordFields > have you had a look at that? (its not quite merged into HEAD yet, but that > due soon i'm told) > > > On Wed, Jun 4, 2014 at 2:26 AM, John Meacha

[Haskell] PROPOSAL: Record field type inference

2014-06-03 Thread John Meacham
This is also available as html at http://repetae.net/computer/jhc/record_inference.html Record Type Inference = An extension to the named field mechanism that will greatly enhance the utility of them when combined with the existing `DisambiguateRecordFields`, `RecordPuns`, an

[Haskell] ANNOUNCE: jhc 0.8.2

2014-06-02 Thread John Meacham
inary representation using LEB128 - Data.String added with mild magic. -- John Meacham - http://notanumber.net/ ___ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell

Re: [Haskell] ANNOUNCE: jhc-0.8.1

2014-05-13 Thread John Meacham
; building jhc later. > > > Best regards, > Krzysztof > > > On Tue, May 13, 2014 at 5:09 AM, John Meacham wrote: >> >> Yeah, there was a bug in the way it detected editline/readline which >> has been fixed in the repo. >> >> You can run configure with

Re: [Haskell] ANNOUNCE: jhc-0.8.1

2014-05-12 Thread John Meacham
> Thank you for the new release. :) > > On 13 May 2014 04:40, John Meacham wrote: >> >> as for the packages i've been testing with >> >> >> fgl,regex-compat,bytestring,binary,mtl,containers,unix,utf8-string,zlib,HsSyck,filepath,process,syb,old-time,p

Re: [Haskell] ANNOUNCE: jhc-0.8.1

2014-05-12 Thread John Meacham
libraries are known to > work for jhc? > > Best regards, > Krzysztof Skrzętnicki > > > On Sun, May 11, 2014 at 10:20 PM, John Meacham wrote: >> >> After a hiatus, jhc 0.8.1 is released. >> >> http://repetae.net/computer/jhc >> >> - New license,

Re: [Haskell] Types of when and unless in Control.Monad

2012-04-21 Thread John Meacham
Yes, this has always bothered me too. John On Sat, Apr 21, 2012 at 2:51 AM, Andreas Abel wrote: > In Control.Monad, when has type > >  when :: Monad m => Bool -> m () -> m () > > I think this type should be generalized to > >  when :: Monad m => Bool -> m a -> m () > > to avoid silly "return

Re: [Haskell] [Haskell-cafe] ANNOUNCE: system-filepath 0.4.5 and system-fileio 0.3.4

2012-02-16 Thread John Meacham
On Thu, Feb 16, 2012 at 1:20 PM, Ian Lynagh wrote: > I've now implemented this in GHC. For now, the syntax is: > > type    {-# CTYPE "some C type" #-} Foo = ... > newtype {-# CTYPE "some C type" #-} Foo = ... > data    {-# CTYPE "some C type" #-} Foo = ... > > The magic for (Ptr a) is built in to

Re: [Haskell] [Haskell-cafe] ANNOUNCE: system-filepath 0.4.5 and system-fileio 0.3.4

2012-02-09 Thread John Meacham
On Thu, Feb 9, 2012 at 11:23 AM, Ian Lynagh wrote: > On Thu, Feb 09, 2012 at 04:52:16AM -0800, John Meacham wrote: >> >> Since CSigSet has "sigset_t" associated with it, 'Ptr CSigSet' ends up >> turning >> into 'sigset_t *' in the gene

Re: [Haskell] ANNOUNCE: jhc-0.8.0

2012-02-09 Thread John Meacham
using the drift_procesed one. hmm.. John On Thu, Feb 9, 2012 at 10:49 AM, Sergei Trofimovich wrote: > On Tue, 7 Feb 2012 20:03:20 -0800 > John Meacham wrote: > >> I am happy to announce jhc 0.8.0 >> >> There have been A lot of major changes in jhc with this release. >

Re: [Haskell] [Haskell-cafe] ANNOUNCE: system-filepath 0.4.5 and system-fileio 0.3.4

2012-02-09 Thread John Meacham
On Wed, Feb 8, 2012 at 10:56 AM, Ian Lynagh wrote: > That sounds right. It basically means you don't have to write the C > stubs yourself, which is nice because (a) doing so is a pain, and (b) > when the foreign import is inside 2 or 3 CPP conditionals it's even more > of a pain to replicate them

[Haskell] ANNOUNCE: jhc-0.8.0

2012-02-07 Thread John Meacham
I am happy to announce jhc 0.8.0 There have been A lot of major changes in jhc with this release. - http://repetae.net/computer/jhc - A brand new and sanified library description file format. Now it is a true YAML file. The previous quasi-cabal files are supported but deprecated. - new stand

Re: [Haskell] [Haskell-cafe] ANNOUNCE: system-filepath 0.4.5 and system-fileio 0.3.4

2012-02-07 Thread John Meacham
On Tue, Feb 7, 2012 at 4:24 AM, Simon Marlow wrote: > Separately the unix package added support for undecoded FilePaths > (RawFilePath), but unfortunately at the same time we started using a new > extension in GHC 7.4.1 (CApiFFI), which we decided not to document because > it was still experimenta

[Haskell] ANNOUNCE: jhc-0.7.8

2012-01-18 Thread John Meacham
Announcing jhc 0.7.8! This is mainly a bug fix release. http://repetae.net/computer/jhc/ Changes include: * Now compiles under ghc 7.0.x as well as 6.12 * new standard libraries * filepath * deepseq * new platforms supported Nintendo DSi, GBA, and GP32 (thanks to Brian McKenna)

[Haskell] ANNOUNCE: jhc 0.7.7 is out.

2011-01-29 Thread John Meacham
Announcing jhc 0.7.7! This release fixes a large number of bugs that cropped up when compiling haskell out in the wild as well as adds some more features. A major one being the garbage collector is enabled by default.  http://repetae.net/computer/jhc/ Changes: (including some changes from the una

Re: [Haskell] ANNOUNCE: jhc 0.7.4

2010-07-26 Thread John Meacham
ters can be fully integreated into the word, so the entire space usage of "Hello" is 10 words as lists benefit from the same packing benefits as Maybe. compare this to 30 or so words used in a traditional "everything is on the heap and tagged" model. The manual has a

[Haskell] ANNOUNCE: jhc 0.7.5

2010-07-21 Thread John Meacham
selftest. * bug fixes John -- John Meacham - ⑆repetae.net⑆john⑈ - http://notanumber.net/ ___ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell

Re: [Haskell] ANNOUNCE: Haskell 2010 Report (final)

2010-07-12 Thread John Meacham
On Mon, Jul 12, 2010 at 11:57:18AM +0100, Simon Marlow wrote: > On 09/07/2010 18:46, John Meacham wrote: >> On Fri, Jul 09, 2010 at 12:39:38PM +0100, Simon Marlow wrote: >>> On 08/07/2010 22:46, John Meacham wrote: >>>> Ack, I just noticed that IntPtr,IntMax, and Word

Re: [Haskell-cafe] Re: [Haskell] ANNOUNCE: Haskell 2010 Report (final)

2010-07-12 Thread John Meacham
address of a stack allocated object will inhibit certain gcc optimizations. The underlying allocator is based on Bonwick's slab allocator[2] which works quite well for a haskell runtime, I have a slab for each type, so a slab of 'cons' cells, a slab of size 3 tupl

[Haskell] ANNOUNCE: jhc 0.7.4

2010-07-09 Thread John Meacham
version is stored in the cache files, so multiple versions of jhc don't clobber each others cache entries - Ord instance for lists fixed - recursive type synonyms detected properly - make sure errno.h is included when errno is referenced - don't give a parse error when seein

Re: [Haskell] ANNOUNCE: Haskell 2010 Report (final)

2010-07-09 Thread John Meacham
On Fri, Jul 09, 2010 at 12:39:38PM +0100, Simon Marlow wrote: > On 08/07/2010 22:46, John Meacham wrote: >> Ack, I just noticed that IntPtr,IntMax, and WordPtr and WordMax were >> left out of the report. These are fairly vital for writing portable FFI >> code. > > Make

Re: [Haskell] ANNOUNCE: Haskell 2010 Report (final)

2010-07-08 Thread John Meacham
Ack, I just noticed that IntPtr,IntMax, and WordPtr and WordMax were left out of the report. These are fairly vital for writing portable FFI code. John -- John Meacham - ⑆repetae.net⑆john⑈ - http://notanumber.net/ ___ Haskell mailing list

Re: [Haskell-cafe] Re: [Haskell] ANNOUNCE: Haskell 2010 Report (final)

2010-07-08 Thread John Meacham
pports garbage collection and a speedier runtime and better support for external build systems will be out soon. My goal is one more point release before 0.8.0 which will have full haskell 2010 and 98 support. John -- John Meacham - ⑆repetae.ne

Re: [Haskell] Re: [Haskell-cafe] Work on Video Games in Haskell

2010-05-26 Thread John Meacham
On Wed, May 26, 2010 at 01:17:00PM -0700, Evan Laforge wrote: > Unfortunately then you get another cockamamie restriction in the whole > JVM vs. tail calls thing... but if you can get around that then lots > of people will like you a lot. Working on it... :) John -- Joh

[Haskell] Re: [Haskell-cafe] generalized newtype deriving allows the definition of otherwise undefinable functions

2010-03-09 Thread John Meacham
=> Set a = ... like Jan-Willem suggests, then it seems that 'Set' should not be able to unify with 'item' since it has the extra 'Ord' consraint on the contravariant argument to item and item is universally quantified. Item would need a psuedo-type l

[Haskell] generalized newtype deriving breaks type class invariants. that is bad.

2010-03-09 Thread John Meacham
'e',Down 'f'] Set.toAscList sxs2 [Down 'f',Down 'e',Down 'd',Down 'c',Down 'b',Down 'a'] We have been able to break the invarients of 'Set' using newtype deriving of a completely unrelated class

[Haskell] ANNOUNCE: jhc-0.7.3

2010-02-28 Thread John Meacham
ions to INLINE - qualified method names fix John -- John Meacham - ⑆repetae.net⑆john⑈ - http://notanumber.net/ ___ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell

Re: [Haskell] ANNOUNCE: jhc 0.7.1

2009-08-25 Thread John Meacham
ed by the build in a non-precise way. This is necessary so a theoretical 'jhc-pkg' tool need only worry about adding required libraries, not cleaning up or worrying about finding consistent sets of libraries. A simple recursive download on dependencies suffices as a rudimentary

[Haskell] ANNOUNCE: jhc 0.7.1

2009-08-24 Thread John Meacham
n the list at: http://www.haskell.org/mailman/listinfo/jhc John -- John Meacham - ⑆repetae.net⑆john⑈ - http://notanumber.net/ ___ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell

Re: [Haskell] ANNOUNCE: jhc 0.6.1

2009-06-24 Thread John Meacham
to GHC extensions and it is missing some notable ones such as MPTCs, but has some other interesting ones such as first class existential types. John -- John Meacham - ⑆repetae.net⑆john⑈ - http://notanumber.net/ ___ Haskell mailing list H

[Haskell] ANNOUNCE: jhc 0.6.1

2009-06-23 Thread John Meacham
also now available in the repetae yum repository which you can get at via ; rpm -i http://repetae.net/yum/repetae-repo-1.0-3.noarch.rpm ; yum install jhc Enjoy! John -- John Meacham - ⑆repetae.net⑆john⑈ - http://notanumber.net

Re: [jhc] Re: [Haskell] ANNOUNCE: jhc 0.6.0 Haskell Compiler

2009-03-23 Thread John Meacham
not difficult to achieve with some attention to strictness annotations. John -- John Meacham - ⑆repetae.net⑆john⑈ ___ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell

Re: [jhc] Re: [Haskell] ANNOUNCE: jhc 0.6.0 Haskell Compiler

2009-03-22 Thread John Meacham
ic analysis (such as full region inference will do) helps all back ends so I will likely spend some time focusing on that. John -- John Meacham - ⑆repetae.net⑆john⑈ ___ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell

Re: [Haskell] ANNOUNCE: jhc 0.6.0 Haskell Compiler

2009-03-22 Thread John Meacham
stances come with (since they are based on fedora core 8). Man. those high CPU ec2 instances are great for plowing through regression tests. :) John -- John Meacham - ⑆repetae.net⑆john⑈ ___ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell

Re: [Haskell] ANNOUNCE: jhc 0.6.0 Haskell Compiler

2009-03-19 Thread John Meacham
uint32_t v14532078 = (v184744394 - 1); v184744394 = v14532078; goto fW_a__fMain__fl_aMain__countdown_d43_u8; } } } John -- John Meacham - ⑆repetae.net⑆john⑈ ___ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell

[Haskell] ANNOUNCE: jhc 0.6.0 Haskell Compiler

2009-03-16 Thread John Meacham
oin the list and let us know. -- John Meacham - ⑆repetae.net⑆john⑈ ___ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell

Re: [Haskell-cafe] Re: [Haskell] Top Level <-

2008-08-25 Thread John Meacham
never referenced again. hence something like 'free' is okay which wouldn't be if other references to the object exist. do you think that is 'formal' enough of a description? seems clear enough if ACIO is well defined which I think it is. John -- John Meacham - ⑆repetae.net⑆john⑈ ___ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell

[Haskell] Re: [Haskell-cafe] ANNOUNCE: Sun Microsystems and Haskell.org joint project on OpenSPARC

2008-07-24 Thread John Meacham
f not code)) just ignore the windows and treat the architecture as having a flat 32 register file. John -- John Meacham - ⑆repetae.net⑆john⑈ ___ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell

Re: [Haskell] Error recovery for Haskell parsers?

2008-04-16 Thread John Meacham
want is getting frustrating. see http://pdos.csail.mit.edu/~baford/packrat/thesis/ for more information on packrat parsing and PEGs. I have continued development of pappy from Bryan Ford's original version and my repo is at [2]. [1] http://repetae.net/computer/frisby/ [2] http://repetae.net/r

Re: [Haskell] Extensible records: Static duck typing

2008-02-08 Thread John Meacham
t;Id's" are cute, but I do a double take every time I try to parse one with my brain :). John > > John Meacham wrote: >> On Tue, Feb 05, 2008 at 08:01:07AM -0500, Cale Gibbard wrote: >>> I also like this idea. Retaining the ability to treat selection as a >&

Re: [Haskell] Extensible records: Static duck typing

2008-02-08 Thread John Meacham
. a *' b = almostMultiply a b John -- John Meacham - ⑆repetae.net⑆john⑈ ___ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell

Re: [Haskell] Extensible records: Static duck typing

2008-02-05 Thread John Meacham
common with tuples than the current labeld field mechanism so parens are a much more natural choice. you can think of tuples as 'anonymous positional data types' and records as 'anonymous labeled data types'. when thought about that way, parenthesis make a lot more sense

Re: [Haskell] Module system question

2007-10-16 Thread John Meacham
about and illuminate any interactions between proposals that might not be obvious when considered separately. John -- John Meacham - ⑆repetae.net⑆john⑈ ___ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell

Re: [Haskell] -compiler-options vs {#-LANGUAGE Flags-#}

2007-04-05 Thread John Meacham
On Thu, Apr 05, 2007 at 10:53:31AM -0700, Stefan O'Rear wrote: > On Thu, Apr 05, 2007 at 10:42:09AM -0700, John Meacham wrote: > > On Sat, Mar 24, 2007 at 01:18:30PM +0100, Lennart Kolmodin wrote: > > > I think the LANGUAGE pragma is much better than OPTIONS_GHC, fo

Re: [Haskell] -compiler-options vs {#-LANGUAGE Flags-#}

2007-04-05 Thread John Meacham
o the code. This is a major problem with Distribution.* in general actually that needs to be cleaned up at some point. (Distribution2.* ?) hrm.. John -- John Meacham - ⑆repetae.net⑆john⑈ ___ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell

Re: [Haskell] ANN: binary arithmetic type library over natural kinds

2007-03-08 Thread John Meacham
gt; be useful for the sorts of programs I tend to write--which have run-time > sizes. I think this sort of thing will 'just work' unless I am misunderstanding what you want. This all seems very interesting, I would like it if there were a standardish type level arithmetic librar

[Haskell] method annotations

2007-03-07 Thread John Meacham
mization are availabe in jhc, but only via pragmas and some built in heuristics/special knowledge in the compiler. Implementing the above syntax has been on my todo list. Anecdotal examination of core leads me to believe they could be signifigantly beneficial. John -- John Meacham - ⑆repet

Re: [Haskell] ANNOUNCE: Data.CompactString 0.1 - my attempt at a Unicode ByteString

2007-02-08 Thread John Meacham
as decoding it, then sorting it. a _very_ large win for the 'Ord' instance for CompactString. and it is not just files, foreign functions in utf8 locales often take or return strings as arguments, being able to just call those directly with the bytestring contents is also a big win.

Re: [Haskell] ANNOUNCE: Data.CompactString 0.1 - my attempt at a Unicode ByteString

2007-02-08 Thread John Meacham
hould be ascii, utf8 or ucs-4 or migrating to it. John -- John Meacham - ⑆repetae.net⑆john⑈ ___ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell

[Haskell] ANNOUNCE: DrIFT 2.2.1 - support for Data.Binary

2007-01-25 Thread John Meacham
Foo for unary constructors update for label 'foo' provides 'foo_u' to update it and foo_s to set it John -- John Meacham - ⑆repetae.net⑆john⑈ ___ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell

[Haskell] jhc - call for volunteers

2007-01-25 Thread John Meacham
e and system F) to .NET as all the front/middle end stuff is in place. John -- John Meacham - ⑆repetae.net⑆john⑈ ___ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell

Re: [Haskell] [Fwd: Re: Computer Language Shootout]

2007-01-25 Thread John Meacham
le, make everything else as lazy as possible.". at least, that is as far as one should go without benchmarks or some good reasoning to manipulate strictness further. John -- John Meacham - ⑆repetae.net⑆john⑈ ___ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell

Re: [Haskell] Views in Haskell

2007-01-23 Thread John Meacham
_' would be allowed, having its normal meaning when used as a pattern match, but becoming 'undefined' when used as a constructor. perhaps this is unrelated to views, but this sort of thing is what I found attractive about the old proposal. John -- John M

Re: [Haskell] Higher kind type inference paper

2006-12-07 Thread John Meacham
y from my previous algorithm which envolved from the original hatchet code, which is derived from the THIH paper. John -- John Meacham - ⑆repetae.net⑆john⑈ ___ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell

[Haskell] [ANNOUNCE] Frisby: composable, linear time parser for arbitrary PEG grammers

2006-08-21 Thread John Meacham
ment monadic recursion. the home page and more information is here: http://repetae.net/computer/frisby/ I would greatly welcome feedback on the API. I have included routines that take standard regular expression syntax and translate them into an equivalent frisby parser. John -- John M

[Haskell] Re: ANN: TextRegexLazy 0.44

2006-07-24 Thread John Meacham
egular expression backends to be used via a common and useful interface. John -- John Meacham - ⑆repetae.net⑆john⑈ ___ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell

Re: [Haskell] Re: ANNOUNCE: HNOP 0.1

2006-06-30 Thread John Meacham
t; least may slip under the wire (and I don't make any use of arrays, so it > shouldn't be too slow). ; jhc -v Main.hs ; strip hs.out ; ls -al hs.out -rwxr-xr-x 1 john john 6008 Jun 30 14:37 hs.out 6k or so. John -- Jo

Re: [Haskell] Re: Comments from Brent Fulgham on Haskell and the shootout

2006-06-27 Thread John Meacham
l constrained polymorphism to get good strictness results. Most of this is just idle speculation though based on some perceived parallels... of course, this is probably not very interesting and obvious... but I found it pretty neat. I'm odd like that. Hmm.. what

Re: [Haskell] Re: My summer of code project: HsJudy

2006-05-30 Thread John Meacham
mplemented for building very fast free variable sets in jhc. I considered making a stand-alone version that included the judy source, but decided it would be much nicer to just link against the libjudy installed on the system as it is a generally very usefu

Re: [Haskell] Optimizing locking with MVars

2006-05-02 Thread John Meacham
t so it can finish up its long computation. with MVars, you never know whether an MVar is being used for simple locking or as an inter-thread communication mechanism. John -- John Meacham - ⑆repetae.net⑆john⑈ ___ Haskell mailing

Re: [Haskell] Re: ANNOUNCE: FPS - FastPackedStrings 0.2

2006-04-19 Thread John Meacham
too. perhaps this library should be renamed 'FastByteArray' instead? which is a very useful datatype too. John -- John Meacham - ⑆repetae.net⑆john⑈ ___ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell

[Haskell] ANNOUNCE: DrIFT-2.2.0

2006-04-10 Thread John Meacham
DrIFT 2.2.0 has been released. you can learn about and download it here http://repetae.net/john/computer/haskell/DrIFT/ a summary of changes since the last resease follows DrIFT-2.2.0: Mon Apr 10 00:39:24 PDT 2006 John Meacham <[EMAIL PROTECTED]> * add note about reconf script * ma

[Haskell] Re: unicode/internalization issues

2006-03-28 Thread John Meacham
brary, New I/O library, and even CharIO module from jhc > sources programs compiled by jhc will use the proper locale as set by the system so support any encoding your c libraries support. John -- John Meacham - ⑆repetae.net⑆john⑈ ___ Haske

Re: [Haskell] ANN: monadLib 2.0

2006-03-20 Thread John Meacham
d too. Also, it looks like some of your monads overlap with what is provided by the Applicative (Idiom) and friends classes to be included in the next version of ghc, perhaps you can make a version of monadLib that builds on those? John -- John Meacham - ⑆repetae.net⑆john⑈ ___ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell

Re: [Haskell] -fno-monomorphism-restriction makes type-inference ambiguous?

2006-02-27 Thread John Meacham
ply, stacking a WriterT or a StateT or whatever is simple after the fact. John -- John Meacham - ⑆repetae.net⑆john⑈ ___ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell

Re: [Haskell] Compilation of big, static tables

2006-02-23 Thread John Meacham
o everything C can do but better" without mubling something about with a few caveats under my breath :) John -- John Meacham - ⑆repetae.net⑆john⑈ ___ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell

[Haskell] Re: Question for the haskell implementors: Arrays, unsafePerformIO, runST

2006-02-21 Thread John Meacham
nd of a name in jhc are equivalent in intent to # at the end in ghc, it just means "this might be special in some way" but if we were to have a common name, it should be something more descriptive. perhaps `dependingOn` ? > dependingOn :: a -> b -> a > dependingOn = flip

Re: [Haskell] Re: IO == ST RealWorld

2006-02-21 Thread John Meacham
e c-- style continuations to grin which should obviate the need for setjmp and longjmp which currently cannot be optimized through all that well. John -- John Meacham - ⑆repetae.net⑆john⑈ ___ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell

Re: [Haskell] Re: Question for the haskell implementors: Arrays, unsafePerformIO, runST

2006-02-21 Thread John Meacham
On Tue, Feb 21, 2006 at 10:15:59AM +, Malcolm Wallace wrote: > John Meacham <[EMAIL PROTECTED]> wrote: > > > I generalized this primitive to > > > > drop__ :: a -> b -> b > > Also known in the Prelude as "const"... well, 'flip co

Re: [Haskell] Re: Question for the haskell implementors: Arrays, unsafePerformIO, runST

2006-02-20 Thread John Meacham
gmas have been proposed for in the past. John -- John Meacham - ⑆repetae.net⑆john⑈ ___ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell

Re: [Haskell] Long live Edison

2006-02-20 Thread John Meacham
On Mon, Feb 20, 2006 at 05:10:02PM -0800, Iavor Diatchki wrote: > On 2/20/06, John Meacham <[EMAIL PROTECTED]> wrote: > > I think the problem is that 'mzero' exists, the correct solution seems > > to be to get rid of the 'mzero' method of MonadPlus. Sinc

Re: [Haskell] Long live Edison

2006-02-20 Thread John Meacham
dditive operator, there is no need for another concept of zero and it seems to me that is the real issue. mzero can simply be defined as 'fail "mzero"'. John -- John Meacham - ⑆repetae.net⑆john⑈ ___ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell

Re: [Haskell] Long live Edison

2006-02-20 Thread John Meacham
ls more appropriate to me, there isn't really an 'mplus' you are going to use so making it the mzero just doesn't feel right. John -- John Meacham - ⑆repetae.net⑆john⑈ ___ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell

[Haskell] Question for the haskell implementors: Arrays, unsafePerformIO, runST

2006-02-15 Thread John Meacham
> newAT__ :: Int -> AT a -> Array__ a > newAT__ n (AT a1) = a1 (prim_newAT__ (prim_newWorld__ a1) n) so the initial call to newAT__ now depends on the array transformer and can't be floated out as a CAF. I have reduced several magic primitives to just one, the world cre

Re: [Haskell] Re: System.FilePath survey

2006-02-06 Thread John Meacham
we could experiment with more advanced representations without breaking anyones code. John -- John Meacham - ⑆repetae.net⑆john⑈ ___ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell

Re: [Haskell] System.FilePath survey

2006-02-03 Thread John Meacham
27;s, so is > entirely portable between Unix/Windows - important if you want to be > able to create a binary that runs anywhere. also if you want to manipulate windows paths from unix and vice versa. any standard library should support that sort of thing. John -- John

Re: [Haskell] IO == ST RealWorld

2006-01-29 Thread John Meacham
: > data World__ > > data IOResult a = FailIO World__ IOError | JustIO World__ a > newtype IO a = IO (World__ -> IOResult a) I belive other implementations have used continuations for IO as well. John -- John Meacham - ⑆repetae.net⑆john⑈ ___

Re: [Haskell] Re: haskell.org Public Domain

2006-01-10 Thread John Meacham
lso get around any issues with 'public domain' not being a well defined term in some places and more clearly expresses the intent. John -- John Meacham - ⑆repetae.net⑆john⑈ ___ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell

Re: [Haskell] A collection of related proposals regarding monads

2006-01-05 Thread John Meacham
independent of anything else, giving up error messages on pattern match failures in do notation is not acceptable. so, if the split were to happen, having two methods in MonadZero, one which takes a string argument, would be needed. John -- John Meacham - ⑆repetae.net⑆john

Re: [Haskell] Boxing (Day) Question

2006-01-04 Thread John Meacham
lymorphic functions that are {-# INLINE #-}'d for which all polymorphic functions called by it are also inlined to be applied to unboxed arguments. a $ b = a b id x = x f . g = \x -> f (g x) being particularly useful instances of this John --

Re: [Haskell] Re: (small) records proposal for Haskell '06

2006-01-04 Thread John Meacham
at type does f have? f :: Foo -> Foo or f :: Bar -> Bar ? John -- John Meacham - ⑆repetae.net⑆john⑈ ___ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell

Re: [Haskell] (small) records proposal for Haskell '06

2006-01-04 Thread John Meacham
what type would f x = x { foo = "hello" } have if there were multiple types with 'foo' as a field name? John -- John Meacham - ⑆repetae.net⑆john⑈ ___ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell

Re: [Haskell] Making Haskell more open

2006-01-04 Thread John Meacham
It seems to me that trac is mainly about the various 'fptools' projects and hawiki is about haskell topics in general. John -- John Meacham - ⑆repetae.net⑆john⑈ ___ Haskell mailing list Haskell@haskell.org http://www.haskell.o

[Haskell] existential type synonyms

2005-12-12 Thread John Meacham
Type a) -> (forall b . Type b) -> Bool which means something quite different. if we use 'exists' for existential types, this might be another useful use of said name. John -- John Meacham - ⑆repetae.net⑆john⑈ ___ Haskell

Re: [Haskell] Improvements to GHC

2005-11-17 Thread John Meacham
ways to improve the current record system more conservativly. (like, why is update partial? it should not be partial. grr.) John -- John Meacham - ⑆repetae.net⑆john⑈ ___ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell

Re: [Haskell] why don't we have const Ptrs?

2005-11-05 Thread John Meacham
category. you can cause the compiler itself to bottom out using them. John -- John Meacham - ⑆repetae.net⑆john⑈ ___ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell

Re: [Haskell] specification of sum

2005-11-02 Thread John Meacham
or an instance than + and *. however, I don't know if this ever actually occurs in practice. John -- John Meacham - ⑆repetae.net⑆john⑈ ___ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell

Re: [Haskell] The next langauage definition version will be ``Haskell 1.6''

2005-11-02 Thread John Meacham
from) Perhaps I just dislike dogshed discussions (even when taking place internally) John -- John Meacham - ⑆repetae.net⑆john⑈ ___ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell

Re: [Haskell] pattern matching on record fields and position

2005-11-02 Thread John Meacham
le a data type with no appropriate field. John -- John Meacham - ⑆repetae.net⑆john⑈ ___ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell

Re: [Haskell] specification of sum

2005-11-01 Thread John Meacham
askell 06) I'd also like to see 'join' and 'ap' added to Monad while we are at it. John -- John Meacham - ⑆repetae.net⑆john⑈ ___ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell

Re: [Haskell] reader-like IO, parents of threads

2005-10-18 Thread John Meacham
read_getspecific' returns the value currently associated with > KEY in the calling thread. > > If there is no such key KEY, it returns `NULL'. in gcc you can create (faster) thread local storage with the __thread keyword. as in __thread int foo; m

Re: [Haskell] Excessive sharing and GHC

2005-10-18 Thread John Meacham
On Wed, Oct 19, 2005 at 12:01:07AM +0200, Daan Leijen wrote: > John Meacham wrote: > >On Tue, Oct 18, 2005 at 08:31:19AM +0100, Simon Peyton-Jones wrote: > >>GHC tries not to create space leaks, but does not guarantee not to. In > >>particular, the full laziness tran

Re: [Haskell] Excessive sharing and GHC

2005-10-18 Thread John Meacham
ld onto more than needed. John -- John Meacham - ⑆repetae.net⑆john⑈ ___ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell

[Haskell] ANNOUNCE: JRegex library

2005-10-17 Thread John Meacham
bar"),(1,"ooo"),(2,"ar")],array (0,2) [(0,"foobaaar"),(1,"oo"),(2,"aaar")]] here is its homepage: http://repetae.net/john/computer/haskell/JRegex/ I released a different version of this library in the past, but this version has been cleaned up, moved to a proper spot in the libraries, and is cabalized. John -- John Meacham - ⑆repetae.net⑆john⑈ ___ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell

[Haskell] PROPOSAL: class aliases (revised)

2005-10-13 Thread John Meacham
. John -- John Meacham - ⑆repetae.net⑆john⑈ ___ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell

Re: [Haskell] PROPOSAL: class aliases

2005-10-13 Thread John Meacham
other issues mentioned in my other reply. > > One final thing which would be nice is the ability to define > instances of superclass methods in a subclass declaration. But this > takes things in a different direction entirely.

Re: [Haskell] PROPOSAL: class aliases

2005-10-13 Thread John Meacham
7;alias' so it is clearer what is going on. but if it were actually implemented we could decide whether we want it or not. John -- John Meacham - ⑆repetae.net⑆john⑈ ___ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell

Re: [Haskell] PROPOSAL: class aliases

2005-10-13 Thread John Meacham
On Thu, Oct 13, 2005 at 01:41:14PM -0400, Paul Govereau wrote: > On Oct 12, John Meacham wrote: > > > > [...] > > > > > class Num a where > > > (+), (*):: a -> a -> a > > > (-) :: a -> a -> a > > > negate

Re: [Haskell] PROPOSAL: class aliases

2005-10-13 Thread John Meacham
than just rewriting the prelude. the Lattice example I gave is right out of my toolbox and my anoyances with it are part of what motivated me to write this. > Anyway, my main point it: would a smaller change not suffice? I do not think it suffices. We cou

Re: [Haskell] PROPOSAL: class aliases

2005-10-13 Thread John Meacham
eah, that has confused several people already. I wish I used the new syntax in my original post, it really makes more sense. John -- John Meacham - ⑆repetae.net⑆john⑈ ___ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell

  1   2   3   >