Re: [Haskell-cafe] ANN: theoremquest-0.0.0

2011-02-28 Thread Tom Hawkins
> But what I miss when using these proof assistants, and what I have my > eyes on, is a way to Search ALL The Theorems.  In current proof > assistants, developments are still distributed in "packages" -- and a > particular development might have already proved a very useful lemma > that wasn't the

Re: [Haskell-cafe] ANN: theoremquest-0.0.0

2011-02-28 Thread Luke Palmer
On Mon, Feb 28, 2011 at 7:59 AM, Tom Hawkins wrote: > I have been wanting to gain a better understanding of interactive > theorem proving for some time.  And I've often wondered: Can theorem > proving be made into a user-friendly game that could attract mass > appeal? And if so, could a population

Re: [Haskell-cafe] [SOLVED] why is ghci trying to load hsc file ??

2011-02-28 Thread briand
On Mon, 28 Feb 2011 02:58:58 + Felipe Almeida Lessa wrote: > On Sun, Feb 27, 2011 at 6:48 AM, by way of bri...@aracnet.com > wrote: > > the binding-DSL examples do NOT use the above PRAGMA anywhere in the > > code. > > Probably they have > > Extensions: ForeignFunctionInterface > > on

Re: [Haskell-cafe] segfault when using ghc api

2011-02-28 Thread Edward Amsden
That's doing what I want, but I'm not sure why you passed [(mkModule (stringToPackageId "base") (mkModuleName "Prelude"), Nothing) ] to setContext. I found that [mkModule (stringToPackageId "base") (mkModuleName "Prelude")] matches the type expected by setContext. Perhaps we are using different a

Re: [Haskell-cafe] HANSEI in Haskell?

2011-02-28 Thread Chung-chieh Shan
Daryoush Mehrtash wrote in article in gmane.comp.lang.haskell.cafe: > I see the problem now. But I am confused as to why there are no Bool class > (like Num, Fractional...) in Haskell. If I had such a class then the > problem is solved, (by making the "pm a" an instance of it) right? Or are

Re: [Haskell-cafe] HANSEI in Haskell?

2011-02-28 Thread Daryoush Mehrtash
I see the problem now. But I am confused as to why there are no Bool class (like Num, Fractional...) in Haskell. If I had such a class then the problem is solved, (by making the "pm a" an instance of it) right? Or are there still more issues that I am not seeing? thanks, daryoush On Mon, Feb

Re: [Haskell-cafe] HANSEI in Haskell?

2011-02-28 Thread Chung-chieh Shan
Daryoush Mehrtash wrote in haskell-cafe: > I am confused about this comment: > > Mostly we preferred (as do the domain experts we target) to write > > probabilistic models in direct style rather than monadic > > In the haskell implementation of the lawn model there are two different > version of

Re: [Haskell-cafe] Rebindable 'let' for observable sharing?

2011-02-28 Thread Bas van Dijk
On 28 February 2011 10:38, Henning Thielemann wrote: > Now that almost every syntax can be redirected to custom functions > (RebindableSyntax, OverloadedStrings), would it make sense to map 'let' > to 'fix' ? For the record: are you talking about rewriting: let f = e in b into something like:

Re: [Haskell-cafe] Possibility to implant Haskell GC into PostgreSQL interesting?

2011-02-28 Thread Leon Smith
I'm not particularly familiar with the codebase of either PostgreSQL or GHC, but I'd be rather surprised that porting GHC's garbage collector to PostgreSQL would be an easy or worthwhile task. For example, GHC's garbage collector understands the memory layout that its data structures use, whic

Re: [Haskell-cafe] ANN: theoremquest-0.0.0

2011-02-28 Thread Christopher Done
On 28 February 2011 17:59, Jesper Louis Andersen < jesper.louis.ander...@gmail.com> wrote: > > Many "normal" puzzle games fit into the NP-complete class as well, so > it would look as if human beings like the challenge of trying to solve > hard problems. Theorem proving is simply yet another beast

Re: [Haskell-cafe] ANN: theoremquest-0.0.0

2011-02-28 Thread Jesper Louis Andersen
On Mon, Feb 28, 2011 at 17:02, Colin Adams wrote: > > No I haven't. I'm not a mass-market gamer. I'm an ex-hard-core gamer. > I think that basically, it is the same psychological stuff that is going on in the brains of (puzzle) gamers and people who interactively proves theorems. It is like solvi

Re: [Haskell-cafe] ANN: theoremquest-0.0.0

2011-02-28 Thread Tom Hawkins
> I find this fairly interesting. Once you're finished grappling with the > logical core, I wouldn't mind helping out with a web interface, time > permitting. I suspect attracting mass appeal, or getting users at all, is > helped massively by having a web interface. Thanks for your interest. Yes,

Re: [Haskell-cafe] ANN: theoremquest-0.0.0

2011-02-28 Thread Colin Adams
No I haven't. I'm not a mass-market gamer. I'm an ex-hard-core gamer. On 28 February 2011 15:53, Daniel Peebles wrote: > Have you tried it? It's completely addictive (and takes up a big chunk of > my free time). I'm not sure it'll appeal to everyone, but I wouldn't dismiss > it off-hand like tha

Re: [Haskell-cafe] Why don't my OS threads terminate?

2011-02-28 Thread Bas van Dijk
On 25 February 2011 19:10, Bas van Dijk wrote: > On 25 February 2011 18:27, sclv wrote: >> >> >> Bas van Dijk-2 wrote: >>> >>> I believe the OS threads are created by my levmar library. This >>> library uses bindings-levmar[4] which is a binding to a C library. >>> bindings-levmar uses safe FFI c

Re: [Haskell-cafe] ANN: theoremquest-0.0.0

2011-02-28 Thread Daniel Peebles
Have you tried it? It's completely addictive (and takes up a big chunk of my free time). I'm not sure it'll appeal to everyone, but I wouldn't dismiss it off-hand like that. On Mon, Feb 28, 2011 at 10:16 AM, Colin Adams wrote: > On 28 February 2011 14:59, Tom Hawkins wrote: > >> I have been wan

Re: [Haskell-cafe] ANN: theoremquest-0.0.0

2011-02-28 Thread Colin Adams
On 28 February 2011 14:59, Tom Hawkins wrote: > I have been wanting to gain a better understanding of interactive > theorem proving for some time. And I've often wondered: Can theorem > proving be made into a user-friendly game that could attract mass > appeal? > No. I'd wage money on it. --

[Haskell-cafe] ANN: theoremquest-0.0.0

2011-02-28 Thread Tom Hawkins
I have been wanting to gain a better understanding of interactive theorem proving for some time. And I've often wondered: Can theorem proving be made into a user-friendly game that could attract mass appeal? And if so, could a population of gamers collectively solve interesting and relevant mathe

Re: [Haskell-cafe] A practical Haskell puzzle

2011-02-28 Thread Heinrich Apfelmus
Yves Parès wrote: takeC :: Int -> Compoz a b -> (exists c. Compoz a c) dropC :: Int -> Compoz a b -> (exists c. Compoz c b) What does 'exists' means? To create a rank-2 type can't you use: takeC :: Int -> Compoz a b -> (forall c. Compoz a c) ?? Ah, (exists c. Compoz a c) means "There ex

Re: [Haskell-cafe] A practical Haskell puzzle

2011-02-28 Thread Gábor Lehel
On Mon, Feb 28, 2011 at 12:41 PM, wren ng thornton wrote: > On 2/28/11 2:43 AM, Yitzchak Gale wrote: >> >> You have written a large software system in Haskell. Wishing to >> play to Haskell's strength, you have structured your system >> as a series of composable layers. So you have data types >> >

Re: [Haskell-cafe] segfault when using ghc api

2011-02-28 Thread Daniel Schüssler
Hi, On 2011-February-27 Sunday 16:20:06 Edward Amsden wrote: > Secondly, > > I'd like to get to a GHC session that just has, say, Prelude in scope > so I can use dynCompileExpr with "show" etc, but I cannot figure out > how to bring it into scope. The closest I got was to get GHC > complaining th

Re: [Haskell-cafe] A practical Haskell puzzle

2011-02-28 Thread wren ng thornton
On 2/28/11 2:43 AM, Yitzchak Gale wrote: You have written a large software system in Haskell. Wishing to play to Haskell's strength, you have structured your system as a series of composable layers. So you have data types Layer1, Layer2, ... and functions layer2 :: Layer1 -> Layer2 layer3 ::

Re: [Haskell-cafe] A practical Haskell puzzle

2011-02-28 Thread wren ng thornton
On 2/28/11 6:01 AM, Yves Parès wrote: takeC :: Int -> Compoz a b -> (exists c. Compoz a c) dropC :: Int -> Compoz a b -> (exists c. Compoz c b) What does 'exists' means? To create a rank-2 type can't you use: takeC :: Int -> Compoz a b -> (forall c. Compoz a c) ?? For any A and T,

Re: [Haskell-cafe] trac.haskell.org problem

2011-02-28 Thread wren ng thornton
On 2/28/11 2:50 AM, Niklas Broberg wrote: Ah, I suppose that's to do with the trac server itself, that's beyond me. Moving to café: Does anyone know what's up with trac.haskell.org not sending out verification emails? Having just signed up, like a few hours ago, it took a long while for the v

[Haskell-cafe] ANN: Hakyll 3

2011-02-28 Thread Jasper Van der Jeugt
Hello all, I've just uploaded the 3.0.0.0 version of Hakyll [1] to Hackage [2]. This is a complete rewrite, and completely backward-incompatible with previous versions. Sorry for that. On the other hand, I believe almost all aspects of the library have improved tremendously. Hakyll now uses a dec

Re: [Haskell-cafe] A practical Haskell puzzle

2011-02-28 Thread Yves Parès
> takeC :: Int -> Compoz a b -> (exists c. Compoz a c) > dropC :: Int -> Compoz a b -> (exists c. Compoz c b) What does 'exists' means? To create a rank-2 type can't you use: takeC :: Int -> Compoz a b -> (forall c. Compoz a c) ?? 2011/2/28 Heinrich Apfelmus > Yitzchak Gale wrote: > >> You

[Haskell-cafe] Rebindable 'let' for observable sharing?

2011-02-28 Thread Henning Thielemann
Now that almost every syntax can be redirected to custom functions (RebindableSyntax, OverloadedStrings), would it make sense to map 'let' to 'fix' ? Would this open a way to implement observable sharing as needed in EDSLs by a custom 'fix'? ___ Haskell-

Re: [Haskell-cafe] http://www.cs.cornell.edu/icfp/task.htm

2011-02-28 Thread Vo Minh Thu
Hello, From what I see here, you can use a well-known technique call descent recursive parser. The idee is to do exactly what you did but involving a call to some other function which should do some kind of sub-work. Actually, you can see the pattern already in the code you provided; for instance

Re: [Haskell-cafe] A practical Haskell puzzle

2011-02-28 Thread Heinrich Apfelmus
Yitzchak Gale wrote: You have written a large software system in Haskell. Wishing to play to Haskell's strength, you have structured your system as a series of composable layers. So you have data types Layer1, Layer2, ... and functions layer2 :: Layer1 -> Layer2 layer3 :: Layer2 -> Layer3

Re: [Haskell-cafe] http://www.cs.cornell.edu/icfp/task.htm

2011-02-28 Thread Hauschild, Klaus (EXT)
Hi Thu, You read my mind. Ok, for the details. Here are my data structur for the differen tokens (currently not complete): data GmlToken = IntToken Int | RealToken Double | BoolToken Bool | StringToken String | FunctionToken TokenSequence | ArrayToken TokenSequence