Send Beginners mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
http://www.haskell.org/mailman/listinfo/beginners
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."
Today's Topics:
1. Re: Issue installing reactive-banana-5.0.0.1 (Miguel Negrao)
2. Re: Issue installing reactive-banana-5.0.0.1 (Heinrich Apfelmus)
3. Re: Issue installing reactive-banana-5.0.0.1 (Miguel Negrao)
4. Re: Issue installing reactive-banana-5.0.0.1 (Miguel Negrao)
5. Compilation error parsing arithmetic expressions with
parsec-3.1.2 ([email protected])
6. Re: Compilation error parsing arithmetic expressions with
parsec-3.1.2 (Antoine Latter)
----------------------------------------------------------------------
Message: 1
Date: Tue, 1 May 2012 18:48:27 +0100
From: Miguel Negrao <[email protected]>
Subject: Re: [Haskell-beginners] Issue installing
reactive-banana-5.0.0.1
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=windows-1252
A 28/04/2012, ?s 15:50, Heinrich Apfelmus escreveu:
> Miguel Negrao wrote:
>> I had a try again at running the examples of reactive-banana-wx. I
>> unpacked reactive-banana-wx-0.5.0.0. I have installed wx and wxcore
>> version 0.13.1, that?s what I managed to install at some point (I
>> think there were some issue with OSX Lion on previous versions). So I
>> changed the cabal setup of reactive-banana-wx-0.5.0.0 to wx==0.13.1,
>> wxcore==0.13.1 and then did 'cabal install -fbuildExamples? and
>> everything builds. Most of the examples run fine, although the resize
>> of the window is completely hacky, all the widgets assume strange
>> proportion and become almost unusable
>> (http://img440.imageshack.us/img440/1149/capturadeecr20120428s14.png)
>> . The asteroids app (which was the one I wanted to have look at) the
>> window becomes just a couple pixels, so I can?t see anything
>> (http://img33.imageshack.us/img33/1149/capturadeecr20120428s14.png).
>> Is there a problem in using wx 0.13.1 ? Btw, wx 0.90 "Builds and runs
>> cleanly on 64 bit platforms (particularly MacOS X Lion)?. Would
>> reactive-banana-wx work with wx0.9.0 ?
>
> Ah, it looks like your version of wx got linked with wxWidgets 2.9.3
> instead of wxWidgets 2.8 . This introduces various issues, in particular the
> ones you ran into.
Ah, ok, I did that by mistake, must have installed the wrong version of
wxWidgets.
>
> If you just want to try a few examples with wxWidgets 2.9.3, you can install
> reactive-banana-0.6.0.0 and the corresponding -wx packages from the master
> branch at
>
> https://github.com/HeinrichApfelmus/reactive-banana
>
> This should work with wx-0.90 (though some examples crash), but I can't give
> any guarantees whether the official 0.6 version that I'm going to release on
> hackage will have the exact same API.
>
> That said, I'm basically just waiting for Jeremy to release a small patch to
> wx on hackage that fixes some of these issues (for instance the strangely
> minimized text entries and the crashes). After that, I'm going to release
> reactive-banana-0.6.0.0 that depends on wx-0.90.
Since I have wxWidgets 2.9.3 installed already I might as well give it a try
with reactive-banana-0.6. I installed wx-0.90 and wxcore-0.90 and
reactive-banana-0.6.0 (from git) without issues. I couldn?t install
reactive-banana-wx though, I get this error:
Configuring MissingH-1.1.1.0...
Warning: This package indirectly depends on multiple versions of the same
package. This is highly likely to cause a compile failure.
package regex-base-0.93.2 requires mtl-2.0.1.0
package parsec-3.1.1 requires mtl-2.0.1.0
package parsec-3.1.1 requires mtl-2.1
package hslogger-1.1.5 requires mtl-2.1
package MissingH-1.1.1.0 requires mtl-2.1
package MissingH-1.1.1.0 requires parsec-3.1.1
package network-2.3.0.5 requires parsec-3.1.1
package mtl-2.0.1.0 requires transformers-0.2.2.0
package mtl-2.1 requires transformers-0.3.0.0
Preprocessing library MissingH-1.1.1.0...
Preprocessing executables for MissingH-1.1.1.0...
Building MissingH-1.1.1.0...
<command line>: cannot satisfy -package-id
parsec-3.1.1-178bb186a8cbec1a8bf6b3192212c18e:
parsec-3.1.1-178bb186a8cbec1a8bf6b3192212c18e is shadowed by package
parsec-3.1.1-fb91ea6e6c1f9c50292782ec985e5f9a
(use -v for more information)
Updating documentation index
/Users/miguelnegrao/Library/Haskell/doc/index.html
cabal: Error: some packages failed to install:
MissingH-1.1.1.0 failed during the building phase. The exception was:
ExitFailure 1
cabal-macosx-0.2 depends on MissingH-1.1.1.0 which failed to install.
reactive-banana-wx-0.6.0.0 depends on MissingH-1.1.1.0 which failed to
install.
Thanks !
Miguel Negr?o
ps: Does reactive-banana also have time functions like it is described in
conal?s papers ? i.e. can I just animate something with a function like cos (t)
or do I have to explicitly create timers myself ?
ps2: Sorry yet again for mailing you personally... I just can?t seem to
remember that this list operates via cc and not reply...
------------------------------
Message: 2
Date: Tue, 01 May 2012 20:24:30 +0200
From: Heinrich Apfelmus <[email protected]>
Subject: Re: [Haskell-beginners] Issue installing
reactive-banana-5.0.0.1
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=UTF-8; format=flowed
Miguel Negrao wrote:
>
> Since I have wxWidgets 2.9.3 installed already I might as well give
> it a try with reactive-banana-0.6. I installed wx-0.90 and
> wxcore-0.90 and reactive-banana-0.6.0 (from git) without issues. I
> couldn?t install reactive-banana-wx though, I get this error:
>
> Configuring MissingH-1.1.1.0...
> Warning: This package indirectly depends on multiple versions of the same
> package. This is highly likely to cause a compile failure.
> package regex-base-0.93.2 requires mtl-2.0.1.0
> package parsec-3.1.1 requires mtl-2.0.1.0
> package parsec-3.1.1 requires mtl-2.1
> package hslogger-1.1.5 requires mtl-2.1
> package MissingH-1.1.1.0 requires mtl-2.1
> package MissingH-1.1.1.0 requires parsec-3.1.1
> package network-2.3.0.5 requires parsec-3.1.1
> package mtl-2.0.1.0 requires transformers-0.2.2.0
> package mtl-2.1 requires transformers-0.3.0.0
> Preprocessing library MissingH-1.1.1.0...
> Preprocessing executables for MissingH-1.1.1.0...
> Building MissingH-1.1.1.0...
> <command line>: cannot satisfy -package-id
> parsec-3.1.1-178bb186a8cbec1a8bf6b3192212c18e:
> parsec-3.1.1-178bb186a8cbec1a8bf6b3192212c18e is shadowed by package
> parsec-3.1.1-fb91ea6e6c1f9c50292782ec985e5f9a
> (use -v for more information)
> Updating documentation index
> /Users/miguelnegrao/Library/Haskell/doc/index.html
> cabal: Error: some packages failed to install:
> MissingH-1.1.1.0 failed during the building phase. The exception was:
> ExitFailure 1
> cabal-macosx-0.2 depends on MissingH-1.1.1.0 which failed to install.
> reactive-banana-wx-0.6.0.0 depends on MissingH-1.1.1.0 which failed to
> install.
Fortunately, this time it's not my fault. :)
You ran into a cabal problem with a package depending on multiple
versions of the same package. The culprit seems to be regex-base . I
suggest you try
cabal install regex-base parsec-3.1.1 \
--reinstall --constraint='mtl == 2.1'
to resolve this issue. Then try installing reactive-banana-wx again.
> ps: Does reactive-banana also have time functions like it is
> described in conal?s papers ? i.e. can I just animate something with
> a function like cos (t) or do I have to explicitly create timers
> myself ?
No, you have to create timers yourself. It's not very difficult, though,
you can just create a wxWidget and listen to its command event.
Best regards,
Heinrich Apfelmus
--
http://apfelmus.nfshost.com
------------------------------
Message: 3
Date: Tue, 1 May 2012 21:19:36 +0100
From: Miguel Negrao <[email protected]>
Subject: Re: [Haskell-beginners] Issue installing
reactive-banana-5.0.0.1
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=windows-1252
A 01/05/2012, ?s 19:24, Heinrich Apfelmus escreveu:
> Miguel Negrao wrote:
>> Since I have wxWidgets 2.9.3 installed already I might as well give
>> it a try with reactive-banana-0.6. I installed wx-0.90 and
>> wxcore-0.90 and reactive-banana-0.6.0 (from git) without issues. I
>> couldn?t install reactive-banana-wx though, I get this error:
>> Configuring MissingH-1.1.1.0...
>> Warning: This package indirectly depends on multiple versions of the same
>> package. This is highly likely to cause a compile failure.
>> package regex-base-0.93.2 requires mtl-2.0.1.0
>> package parsec-3.1.1 requires mtl-2.0.1.0
>> package parsec-3.1.1 requires mtl-2.1
>> package hslogger-1.1.5 requires mtl-2.1
>> package MissingH-1.1.1.0 requires mtl-2.1
>> package MissingH-1.1.1.0 requires parsec-3.1.1
>> package network-2.3.0.5 requires parsec-3.1.1
>> package mtl-2.0.1.0 requires transformers-0.2.2.0
>> package mtl-2.1 requires transformers-0.3.0.0
>> Preprocessing library MissingH-1.1.1.0...
>> Preprocessing executables for MissingH-1.1.1.0...
>> Building MissingH-1.1.1.0...
>> <command line>: cannot satisfy -package-id
>> parsec-3.1.1-178bb186a8cbec1a8bf6b3192212c18e:
>> parsec-3.1.1-178bb186a8cbec1a8bf6b3192212c18e is shadowed by package
>> parsec-3.1.1-fb91ea6e6c1f9c50292782ec985e5f9a
>> (use -v for more information)
>> Updating documentation index
>> /Users/miguelnegrao/Library/Haskell/doc/index.html
>> cabal: Error: some packages failed to install:
>> MissingH-1.1.1.0 failed during the building phase. The exception was:
>> ExitFailure 1
>> cabal-macosx-0.2 depends on MissingH-1.1.1.0 which failed to install.
>> reactive-banana-wx-0.6.0.0 depends on MissingH-1.1.1.0 which failed to
>> install.
>
> Fortunately, this time it's not my fault. :)
>
> You ran into a cabal problem with a package depending on multiple versions of
> the same package. The culprit seems to be regex-base . I suggest you try
>
> cabal install regex-base parsec-3.1.1 \
> --reinstall --constraint='mtl == 2.1'
>
> to resolve this issue.
That installs regex-base-0.93.2 with no errors.
> Then try installing reactive-banana-wx again.
But then I get the same error installing reactive-banana-wx.
>
>
>> ps: Does reactive-banana also have time functions like it is
>> described in conal?s papers ? i.e. can I just animate something with
>> a function like cos (t) or do I have to explicitly create timers
>> myself ?
>
> No, you have to create timers yourself. It's not very difficult, though, you
> can just create a wxWidget and listen to its command event.
Is any generality lost because of this or are the approaches equivalent ?
best,
Miguel Negr?o
------------------------------
Message: 4
Date: Wed, 2 May 2012 01:25:33 +0100
From: Miguel Negrao <[email protected]>
Subject: Re: [Haskell-beginners] Issue installing
reactive-banana-5.0.0.1
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=windows-1252
A 01/05/2012, ?s 21:19, Miguel Negrao escreveu:
>
> A 01/05/2012, ?s 19:24, Heinrich Apfelmus escreveu:
>
>> Miguel Negrao wrote:
>>> Since I have wxWidgets 2.9.3 installed already I might as well give
>>> it a try with reactive-banana-0.6. I installed wx-0.90 and
>>> wxcore-0.90 and reactive-banana-0.6.0 (from git) without issues. I
>>> couldn?t install reactive-banana-wx though, I get this error:
>>> Configuring MissingH-1.1.1.0...
>>> Warning: This package indirectly depends on multiple versions of the same
>>> package. This is highly likely to cause a compile failure.
>>> package regex-base-0.93.2 requires mtl-2.0.1.0
>>> package parsec-3.1.1 requires mtl-2.0.1.0
>>> package parsec-3.1.1 requires mtl-2.1
>>> package hslogger-1.1.5 requires mtl-2.1
>>> package MissingH-1.1.1.0 requires mtl-2.1
>>> package MissingH-1.1.1.0 requires parsec-3.1.1
>>> package network-2.3.0.5 requires parsec-3.1.1
>>> package mtl-2.0.1.0 requires transformers-0.2.2.0
>>> package mtl-2.1 requires transformers-0.3.0.0
>>> Preprocessing library MissingH-1.1.1.0...
>>> Preprocessing executables for MissingH-1.1.1.0...
>>> Building MissingH-1.1.1.0...
>>> <command line>: cannot satisfy -package-id
>>> parsec-3.1.1-178bb186a8cbec1a8bf6b3192212c18e:
>>> parsec-3.1.1-178bb186a8cbec1a8bf6b3192212c18e is shadowed by package
>>> parsec-3.1.1-fb91ea6e6c1f9c50292782ec985e5f9a
>>> (use -v for more information)
>>> Updating documentation index
>>> /Users/miguelnegrao/Library/Haskell/doc/index.html
>>> cabal: Error: some packages failed to install:
>>> MissingH-1.1.1.0 failed during the building phase. The exception was:
>>> ExitFailure 1
>>> cabal-macosx-0.2 depends on MissingH-1.1.1.0 which failed to install.
>>> reactive-banana-wx-0.6.0.0 depends on MissingH-1.1.1.0 which failed to
>>> install.
>>
>> Fortunately, this time it's not my fault. :)
>>
>> You ran into a cabal problem with a package depending on multiple versions
>> of the same package. The culprit seems to be regex-base . I suggest you try
>>
>> cabal install regex-base parsec-3.1.1 \
>> --reinstall --constraint='mtl == 2.1'
>>
>> to resolve this issue.
>
> That installs regex-base-0.93.2 with no errors.
>
>> Then try installing reactive-banana-wx again.
>
> But then I get the same error installing reactive-banana-wx.
cabal install regex-base parsec-3.1.1 MissingH --reinstall --constraint='mtl ==
2.1?
With this command it installs correctly, I can now run all the examples. All
seem to work fine except CRUD that crashed at some point.
I will now start exploring.
thanks,
Miguel
------------------------------
Message: 5
Date: Tue, 1 May 2012 23:38:50 -0300
From: [email protected]
Subject: [Haskell-beginners] Compilation error parsing arithmetic
expressions with parsec-3.1.2
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset="us-ascii"
Hello.
I want a parser to parse arithmetic expressions using
Parsec-3.1.2. Therefore I wrote the attached Haskell module.
But its compilation with ghc-7.4.1 fails with the message:
Expr1.hs:22:22:
No instance for (Stream s0 m0 Char)
arising from a use of `pLexeme'
Possible fix: add an instance declaration for (Stream s0 m0 Char)
In the second argument of `(<$>)', namely
`pLexeme (many1 (satisfy isDigit))'
In the expression: read <$> pLexeme (many1 (satisfy isDigit))
In an equation for `pNum':
pNum = read <$> pLexeme (many1 (satisfy isDigit))
Any clues on how to fix this?
Romildo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Expr1.hs
Type: text/x-haskell
Size: 579 bytes
Desc: not available
URL:
<http://www.haskell.org/pipermail/beginners/attachments/20120501/0a241f3b/attachment-0001.hs>
------------------------------
Message: 6
Date: Tue, 1 May 2012 23:45:52 -0500
From: Antoine Latter <[email protected]>
Subject: Re: [Haskell-beginners] Compilation error parsing arithmetic
expressions with parsec-3.1.2
To: [email protected]
Cc: [email protected]
Message-ID:
<cakjsnqh2udy3i8dv5nvwt84wnf_l86jdgu_ciikbvtthvi8...@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8
On Tue, May 1, 2012 at 9:38 PM, <[email protected]> wrote:
> Hello.
>
> I want a parser to parse arithmetic expressions using
> Parsec-3.1.2. Therefore I wrote the attached Haskell module.
>
> But its compilation with ghc-7.4.1 fails with the message:
>
>
Type inference has trouble with parsec sometimes. I gave 'pExpr' a
type signature and it started compiling fine. I picked 'pExpr' to give
the signature to because it was closest to the top of the file - you
can probably pick which one you want to give a signature to.
In my case I went with:
> import Text.Parsec.String
.
.
.
> pExpr :: Parser Expr
but you might want a different signature.
Antoine
> Expr1.hs:22:22:
> ? ?No instance for (Stream s0 m0 Char)
> ? ? ?arising from a use of `pLexeme'
> ? ?Possible fix: add an instance declaration for (Stream s0 m0 Char)
> ? ?In the second argument of `(<$>)', namely
> ? ? ?`pLexeme (many1 (satisfy isDigit))'
> ? ?In the expression: read <$> pLexeme (many1 (satisfy isDigit))
> ? ?In an equation for `pNum':
> ? ? ? ?pNum = read <$> pLexeme (many1 (satisfy isDigit))
>
>
> Any clues on how to fix this?
>
> Romildo
>
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/beginners
>
------------------------------
_______________________________________________
Beginners mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/beginners
End of Beginners Digest, Vol 47, Issue 1
****************************************