GHCI segfault on Double math

2012-12-07 Thread Ron Alford
properFraction segfaults on negative doubles, too. Compiled code doesn't have this defect. I'm going to try the 64 bit version to see if it resolves this problem. -Ron Alford ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http

Re: More infinite simplifier bugs?

2012-07-06 Thread Ron Alford
termination. -Ron Alford ghcloop.hs Description: Binary data ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

More infinite simplifier bugs?

2012-07-05 Thread Ron Alford
the previous simplifier bug): https://github.com/ronwalf/Planning With GHC 7.4.[12], it exhausts all the RAM on my machine (4GB). Compiling with -O0 fixes the problem. I can start bisecting my code to find the problem if nothing comes to mind. -Ron Alford (who seems to be good at killing

Inliner non-termination

2011-09-06 Thread Ron Alford
-fcontext-stack)? -Ron Alford ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Re: Inliner non-termination

2011-09-06 Thread Ron Alford
not. The only time I use funcEq in the code in question is the instance declaration. -Ron Alford ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Re: [Haskell-cafe] Re: How does one get off haskell?

2010-06-21 Thread Ron Alford
in general. This only shows that my task isn't well suited to Haskell's current static typing. -Ron Alford * Note that this was my first and only real haskell project, and all that this entails. [1] http://en.wikipedia.org/wiki/Planning_Domain_Definition_Language [2] http://lambda-the-ultimate.org

Re: [Haskell-cafe] Re: Interest in a Mathematics AI strike force ?

2010-05-05 Thread Ron Alford
On Wed, May 5, 2010 at 12:10 PM, Neal Alexander relapse@gmx.com wrote: - Goal Oriented Behaviors (work in progress) - Goal Oriented Planning (work in progress) I have a library for PDDL parsing and representation[1] that I used in a recent paper. It's heavy complex types to deal with

Re: Deriving regression or bad code?

2010-04-12 Thread Ron Alford
I don't think it'll bite too man people There's a good workaround: use standalone deriving. You | -Original Message- | From: glasgow-haskell-users-boun...@haskell.org [mailto:glasgow-haskell- | users-boun...@haskell.org] On Behalf Of Ron Alford | Sent: 10 April 2010 22:33

Re: Deriving regression or bad code?

2010-04-10 Thread Ron Alford
Just for fun, I tried it on 6.12.1.20100330 with the same result. Does anyone have a workaround? Otherwise I need to revert to 6.10. -Ron On Thu, Apr 8, 2010 at 10:35 AM, Ron Alford ronw...@volus.net wrote: At Igloo's suggestion, it's now a ticket: http://hackage.haskell.org/trac/ghc/ticket

Re: Deriving regression or bad code?

2010-04-08 Thread Ron Alford
At Igloo's suggestion, it's now a ticket: http://hackage.haskell.org/trac/ghc/ticket/3965 -Ron On Thu, Apr 8, 2010 at 1:39 AM, Ron Alford ronw...@volus.net wrote: I've attached the simplest example of my code that used to compile in GHC 6.10 now gives the error in GHC 6.12.1

Deriving regression or bad code?

2010-04-07 Thread Ron Alford
I've attached the simplest example of my code that used to compile in GHC 6.10 now gives the error in GHC 6.12.1: baddata.hs:33:14: No instances for (Data Const, Data Var) arising from the 'deriving' clause of a data type declaration at baddata.hs:33:14-17 Possible

Re: [Haskell-cafe] GHC Error: FATAL:Symbol _XJv_srt already defined.

2008-08-14 Thread Ron Alford
I reopened the bug, since I found slight changes to the file were able to reproduce the bug in recent versions of ghc-6.9. I also can't get the -S compilation step to work with the new file, unless I'm missing a step. -Ron Alford On Mon, Jul 21, 2008 at 3:32 AM, Ron Alford [EMAIL PROTECTED

GHC Error: FATAL:Symbol _XJv_srt already defined.

2008-07-20 Thread Ron Alford
, DerivingError.o ) /var/folders/C0/C0SledGV2RaxbU+8ZLDnVU+++TI/-Tmp-//ghc27223_0/ghc27223_0.s:6080:0: FATAL:Symbol _XxG_srt already defined. -Ron Alford DerivingError.hs Description: Binary data ___ Glasgow-haskell-users mailing list Glasgow-haskell-users

[Haskell-cafe] GHC Error: FATAL:Symbol _XJv_srt already defined.

2008-07-20 Thread Ron Alford
-//ghc27223_0/ghc27223_0.s:6080:0: FATAL:Symbol _XxG_srt already defined. -Ron Alford DerivingError.hs Description: Binary data ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] Typeable and fancy types

2008-07-11 Thread Ron Alford
Hey all, I've reduced my previous problem to a small example. Anyone know why typeOf (...) would work, but typeOf [...] would not? Is the derivation for lists funky? data Expr f = In (f (Expr f)) instance Typeable1 f = Typeable (Expr f) where typeOf (In x) = mkTyConApp (mkTyCon

Re: [Haskell-cafe] Re: Combining Wouter's expressions with extensible records

2008-07-11 Thread Ron Alford
On Fri, Jul 11, 2008 at 12:50 PM, Antoine Latter [EMAIL PROTECTED] wrote: Now we never do pattern matching on our input. This has been pretty educational. Mightily! I'll have to do the same trick for Expr. Thank you very much! -Ron ___

Re: [Haskell-cafe] Combining Wouter's expressions with extensible records

2008-07-10 Thread Ron Alford
On Wed, Jul 9, 2008 at 11:01 PM, Antoine Latter [EMAIL PROTECTED] wrote: It isn't immediately obvious to me that the Typeable family of classes deal at all with higher-kinded type constructors, but I didn't look that hard. Yes, that's what I'm worried about. For people's fun and amusement,

Re: [Haskell-cafe] Combining Wouter's expressions with extensible records

2008-07-10 Thread Ron Alford
Or, if people have easy-enough extensible records that /will/ work with funky types, I'd be happy to use those! -Ron On Thu, Jul 10, 2008 at 10:29 AM, Ron Alford [EMAIL PROTECTED] wrote: On Wed, Jul 9, 2008 at 11:01 PM, Antoine Latter [EMAIL PROTECTED] wrote: It isn't immediately obvious

[Haskell-cafe] Data.Derive problems

2008-07-10 Thread Ron Alford
I'm using GHC 6.8.3 with $ cabal --version cabal-install version 0.5.1 using version 1.4.0.1 of the Cabal library I installed Data.Derive from hackage, only to be unable to find the 'derive' binary! Trying it directly from darcs, I get: $ ghc --make Setup.hs [1 of 1] Compiling Main (

[Haskell-cafe] Re: Combining Wouter's expressions with extensible records

2008-07-10 Thread Ron Alford
, Ron Alford [EMAIL PROTECTED] wrote: Well, my extension of Wouter's datatypes proved to be unweildy So, I'm trying to use http://fmapfixreturn.wordpress.com/2008/05/03/simple-extensible-records-now-quick-generic-tricks-pt-1/ for extensible records. I ran across my first problem rather quickly

Re: [Haskell-cafe] Data.Derive problems

2008-07-10 Thread Ron Alford
On Thu, Jul 10, 2008 at 3:18 PM, Neil Mitchell [EMAIL PROTECTED] wrote: Hi Ron, I'm using GHC 6.8.3 with $ cabal --version cabal-install version 0.5.1 using version 1.4.0.1 of the Cabal library I installed Data.Derive from hackage, only to be unable to find the 'derive' binary! Did

Re: [Haskell-cafe] Re: Combining Wouter's expressions with extensible records

2008-07-10 Thread Ron Alford
values to type - ick! -Ron Alford On Thu, Jul 10, 2008 at 4:16 PM, Antoine Latter [EMAIL PROTECTED] wrote: On Thu, Jul 10, 2008 at 2:15 PM, Ron Alford [EMAIL PROTECTED] wrote: I'm making progress, but how would I make the following a Typeable instance: data (f :+: g) e = Inl (f e) | Inr (g e

Re: [Haskell-cafe] Re: Combining Wouter's expressions with extensible records

2008-07-10 Thread Ron Alford
This is a bit similar to Either. Is there a way to see the generated instance code for deriving instance Data Either ? On Thu, Jul 10, 2008 at 6:38 PM, Ron Alford [EMAIL PROTECTED] wrote: Close - it compiles now! I made a minor change, going to Typeable1 instead of Typeable: instance

Re: [Haskell-cafe] Re: Combining Wouter's expressions with extensible records

2008-07-10 Thread Ron Alford
deriving instance Data (Expr (Const :+: Var)) -Ron Alford WouterTest.hs Description: Binary data ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] Combining Wouter's expressions with extensible records

2008-07-09 Thread Ron Alford
Well, my extension of Wouter's datatypes proved to be unweildy So, I'm trying to use http://fmapfixreturn.wordpress.com/2008/05/03/simple-extensible-records-now-quick-generic-tricks-pt-1/ for extensible records. I ran across my first problem rather quickly! data Expr f = In (f (Expr f)) Ok,

[Haskell-cafe] Wouter Swierstra style extensible records!

2008-07-03 Thread Ron Alford
Having made over-use of Wouter's expression idioms, I decided to hack it into extensible records. It's not documented, it's probably got holes in its usability, but I thought I'd post it so people can play with it (and give suggestions before I rewrite my code to use it!). I know there are other

[Haskell-cafe] Haskell's type system

2008-06-17 Thread Ron Alford
I'm trying to wrap my head around the theoretical aspects of haskell's type system. Is there a discussion of the topic separate from the language itself? Since I come from a rather logic-y background, I have this (far-fetched) hope that there is a translation from haskell's type syntax to first

[Haskell-cafe] Wouter-style expressions

2008-06-04 Thread Ron Alford
Here's something that should be an easy extension of Wouter's approach to extensible datatypes, but I'm failing (possibly since it's 2:20am). I several classes of expressions I'm trying to represent (thus, Wouter's approach), and my first operation to implement over them is printing. Attached

[Haskell-cafe] Mutually recursive types?

2008-04-16 Thread Ron Alford
Here's the setup: I have a series of problems that use various logical connectives. The problem is that they're not all the same. So instead of creating one giant datatype (or duplicating much code), I'd like to assemble them like toy blocks. I've boiled down an example here: data