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. compilation joys (Elise Huard)
2. Re: compilation joys (Brandon Allbery)
3. Re: Using "cabal test" and getting "cabal: Prelude.read: no
parse" (Daniel King)
4. Re: installing cabal 1.20 on linux mint debian edition
(LMDE) (Ovidiu Deac)
----------------------------------------------------------------------
Message: 1
Date: Thu, 29 May 2014 17:31:16 +0200
From: Elise Huard <[email protected]>
To: [email protected]
Subject: [Haskell-beginners] compilation joys
Message-ID:
<CAHfyCqmXk7pCdQ33yg5fqa=va2ez-gd-8kk0kyha51rdkev...@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8
Hi,
I've been compiling this project https://github.com/mlesniak/game.git
It uses Hipmunk (2D collision detection/physics framework) and OpenGL.
Now the problem is that Hipmunk uses Data.StateVar, and OpenGL/GLUT
use Graphics.Rendering.OpenGL.GL.StateVar
Both have pretty much the same code and functionality, but using both
together gives problems with conflicting types.
My current solution was to locally fork Hipmunk and make it use
Graphics.Rendering.OpenGL.GL.StateVar (because the other way round -
making OpenGL use Data.StateVar, is a cascading nightmare, lots of
libs to patch), and this works.
My question: is this the only possible solution? Is there some way
that doesn't involve patching one library or the other?
The other thing I had to locally patch is to force cabal to use
freeglut instead of the local Mac OS X GLUT. I did this by again,
locally forking GLUT (long live cabal sandbox add-source!) and adding
extra-lib-dirs: /usr/local/Cellar/freeglut/2.8.1/lib
which is the local homebrew freeglut dir.
Is there a better, more reproducible way to do this?
Thank you,
Elise
------------------------------
Message: 2
Date: Thu, 29 May 2014 11:41:00 -0400
From: Brandon Allbery <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] compilation joys
Message-ID:
<cakfcl4uxc0y8dtuxg4b7tqrkzyd50n0gq+vgaelensvjege...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
On Thu, May 29, 2014 at 11:31 AM, Elise Huard <[email protected]> wrote:
> It uses Hipmunk (2D collision detection/physics framework) and OpenGL.
> Now the problem is that Hipmunk uses Data.StateVar, and OpenGL/GLUT
> use Graphics.Rendering.OpenGL.GL.StateVar
> Both have pretty much the same code and functionality, but using both
> together gives problems with conflicting types.
>
I thought Data.StateVar was the old OpenGL StateVar unbundled? That is,
current versions of OpenGL should be using Data.StateVar. Unfortunately,
the Haskell Platform ships an older version of OpenGL; you may need to use
a sandbox to install a current OpenGL. (Or wait a bit; the next Platform
update is in testing.)
--
brandon s allbery kf8nh sine nomine associates
[email protected] [email protected]
unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://www.haskell.org/pipermail/beginners/attachments/20140529/e4fe7116/attachment-0001.html>
------------------------------
Message: 3
Date: Thu, 29 May 2014 12:56:02 -0400
From: Daniel King <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] Using "cabal test" and getting
"cabal: Prelude.read: no parse"
Message-ID:
<CAOShcWp7Dwq=jsh-_waz+hqy1va+qxdvo8plr5go2c7j64y...@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8
Hi all,
In correspondence with #hackage, I determined the source of the error.
I wasn't using a test framework with the detailed-0.9 "test type", so
when my tests threw errors they killed the process and eventually
produced that Prelude.read error.
On Tue, May 27, 2014 at 3:29 PM, Brent Yorgey <[email protected]> wrote:
> On Tue, May 27, 2014 at 02:47:51PM -0400, Daniel King wrote:
>> On Tue, May 27, 2014 at 1:45 PM, Brent Yorgey <[email protected]> wrote:
>> > This seems related, though I don't think it's your problem exactly:
>> >
>> > https://github.com/haskell/cabal/issues/1366
>>
>> I saw that, realized I didn't change directory at all and wasn't
>> really sure how to proceed. It did help me narrow done the cause to
>> something directly in the test suite though.
>>
>> > Apparently a "read: no parse" error can be generated when cabal fails
>> > to read a log file for some reason. Can you tell us precisely what
>> > versions of cabal and ghc you are using (i.e. the output of ghc
>> > --version and cabal --version)?
>>
>> Sure thing:
>>
>> 1 danking@spock # cabal --version
>> cabal-install version 1.20.0.2
>> using version 1.20.0.0 of the Cabal library
>>
>> danking@spock # ghc --version
>> The Glorious Glasgow Haskell Compilation System, version 7.6.3
>>
>> Upon seeing this version information, I tried changing my build-depends to
>> depend on Cabal 1.20 or greater, but I still get the error.
>
> Hmm, I'm not sure then. The people who know the most about the
> internals of Cabal likely do not read this list; you may have better
> luck asking on stackoverflow.com and/or in the #hackage channel on
> Freenode IRC.
>
> -Brent
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/beginners
--
Dan King
------------------------------
Message: 4
Date: Thu, 29 May 2014 21:44:46 +0300
From: Ovidiu Deac <[email protected]>
To: [email protected], The Haskell-Beginners Mailing List -
Discussion of primarily beginner-level topics related to Haskell
<[email protected]>
Subject: Re: [Haskell-beginners] installing cabal 1.20 on linux mint
debian edition (LMDE)
Message-ID:
<CAKVsE7v7QWV=7ajhme+dqbqwxrn_+nr-aw9yetbz2c_q0ox...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
If I do cabal update && cabal install cabal
Apparently cabal is installed correctly
ovidiu@thinkpad ~ $ cabal update && cabal install cabal
Downloading the latest package list from hackage.haskell.org
Resolving dependencies...
Downloading Cabal-1.20.0.1..
[...skipping many lines...]
In-place registering Cabal-1.20.0.1...
Installing library in
/home/ovidiu/.cabal/lib/x86_64-linux-ghc-7.6.3/Cabal-1.20.0.1
Registering Cabal-1.20.0.1...
Installed Cabal-1.20.0.1
But I can't find ~/.cabal/bin anywhere
ovidiu@thinkpad ~ $ ls ~/.cabal
config lib logs packages share world
On Thu, May 29, 2014 at 1:55 PM, Vlatko Basic <[email protected]>
wrote:
> Install (any) cabal package in Ubuntu (with synaptic), and than run
>
> cabal update
> cabal install cabal
>
>
> After that new cabal will be in your .cabal/bin directory (which should be
> on your path), and available to you only.
>
>
> Cabal is just another package that can be installed. Current version is
> 1.20
>
> vlatko
>
>
> -------- Original Message --------
> Subject: Re: [Haskell-beginners] installing cabal 1.20 on linux mint
> debian edition (LMDE)
> From: Ovidiu Deac <[email protected]> <[email protected]>
> To: The Haskell-Beginners Mailing List - Discussion of primarily
> beginner-level topics related to Haskell <[email protected]>
> <[email protected]>
> Date: 29.05.2014 09:29
>
>
> I'm trying to install a new version of cabal which supports sandboxes
> (>=1.18). Note that the default version of cabal is 1.16.
>
> Thanks for the pointers! I'll try installing from PPA in a few hours and
> get back with an update
>
>
> On Thu, May 29, 2014 at 9:22 AM, Christopher Allen <[email protected]>
> wrote:
>
>> Not to judo past the original question, but would it solve your problem
>> to use an Ubuntu PPA[1]or the cabal binary distribution[2]?
>>
>> Also were you trying to build it in a sandbox? You shouldn't be
>> installing things willy-nilly outside of a sandbox[3].
>>
>> [1]: https://launchpad.net/~hvr/+archive/ghc
>> <https://launchpad.net/%7Ehvr/+archive/ghc>
>> [2]: http://www.haskell.org/cabal/download.html
>> [3]https://github.com/bitemyapp/learnhaskell#cabal-guidelines
>>
>>
>>
>> On Thu, May 29, 2014 at 1:01 AM, Ovidiu Deac <[email protected]>
>> wrote:
>>
>>> I'm trying to install cabal 1.20 like this:
>>>
>>> I installed ghc and ghc-prof from apt repository so I got the following:
>>> ii ghc 7.6.3-5 amd64 The Glasgow Haskell
>>> Compilation s
>>> ii ghc-prof 7.6.3-5 amd64 Profiling libraries for the
>>> Glasg
>>>
>>> Then I git cloned cabal and checked out Cabal-v1.20.0.0
>>>
>>> Then I ran bootstrap.sh in cabal-install dir and I get the following
>>> error:
>>>
>>> Using gcc for C compiler. If this is not what you want, set CC.
>>> Using /usr/lib/gcc/x86_64-linux-gnu/4.8/collect2 instead.
>>> Checking installed packages for ghc-7.6.3...
>>> deepseq is already installed and the version is ok.
>>> time is already installed and the version is ok.
>>> Cabal is already installed and the version is ok.
>>> transformers is already installed and the version is ok.
>>> mtl is already installed and the version is ok.
>>> text is already installed and the version is ok.
>>> parsec is already installed and the version is ok.
>>> network is already installed and the version is ok.
>>> HTTP is already installed and the version is ok.
>>> zlib is already installed and the version is ok.
>>> random is already installed and the version is ok.
>>> stm is already installed and the version is ok.
>>>
>>> [...skipping many lines]
>>>
>>> package cabal-install-1.20.0.0 requires network-2.4.1.2
>>> Building cabal-install-1.20.0.0...
>>> Preprocessing executable 'cabal' for cabal-install-1.20.0.0...
>>> <command line>: cannot satisfy -package-id
>>> network-2.4.1.2-fc99093587d92370c7febe034504fb40:
>>> network-2.4.1.2-fc99093587d92370c7febe034504fb40 is shadowed by
>>> package network-2.4.1.2-040cee5ece44014a8574cb3f87b1eec4
>>> (use -v for more information)
>>>
>>> Error during cabal-install bootstrap:
>>> Building the cabal-install package failed.
>>>
>>> What am I doing wrong here?
>>>
>>> Thanks,
>>> Ovidiu
>>>
>>>
>>> _______________________________________________
>>> Beginners mailing list
>>> [email protected]
>>> http://www.haskell.org/mailman/listinfo/beginners
>>>
>>>
>>
>> _______________________________________________
>> Beginners mailing list
>> [email protected]
>> http://www.haskell.org/mailman/listinfo/beginners
>>
>>
>
>
> _______________________________________________
> Beginners mailing
> [email protected]http://www.haskell.org/mailman/listinfo/beginners
>
>
>
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/beginners
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://www.haskell.org/pipermail/beginners/attachments/20140529/c7625211/attachment.html>
------------------------------
Subject: Digest Footer
_______________________________________________
Beginners mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/beginners
------------------------------
End of Beginners Digest, Vol 71, Issue 37
*****************************************