Re: [Haskell-cafe] cabal-install problem with alex dependency in bytestring-lexing

2012-03-17 Thread Rogan Creswick
On Mar 16, 2012 3:12 PM, "Ivan Lazar Miljenovic" wrote: > > On 17 March 2012 09:02, Erik de Castro Lopo wrote: > > Ivan Lazar Miljenovic wrote: > > > >> One trivial solution is to assume ~/.cabal/bin is on the PATH and to > >> ignore system-wide packages, which I think is even *more* sub-optimal

Re: [Haskell-cafe] cabal-install problem with alex dependency in bytestring-lexing

2012-03-16 Thread Ivan Lazar Miljenovic
On 17 March 2012 09:02, Erik de Castro Lopo wrote: > Ivan Lazar Miljenovic wrote: > >> One trivial solution is to assume ~/.cabal/bin is on the PATH and to >> ignore system-wide packages, which I think is even *more* sub-optimal >> (why install a new version of alex when it's already available?).

Re: [Haskell-cafe] cabal-install problem with alex dependency in bytestring-lexing

2012-03-16 Thread Erik de Castro Lopo
Ivan Lazar Miljenovic wrote: > One trivial solution is to assume ~/.cabal/bin is on the PATH and to > ignore system-wide packages, which I think is even *more* sub-optimal > (why install a new version of alex when it's already available?). The tool should only install alex in ~/.cabal/bin if alex

Re: [Haskell-cafe] cabal-install problem with alex dependency in bytestring-lexing

2012-03-16 Thread wren ng thornton
On 3/16/12 6:00 AM, Erik de Castro Lopo wrote: > Hi all, > > With a base system with just ghc and cabal-install, if I try to install > bytestring-lexing I get: > > $ cabal install bytestring-lexing > Resolving dependencies... > Configuring bytestring-lexing-0.4.0... > cabal: The

Re: [Haskell-cafe] cabal-install problem with alex dependency in bytestring-lexing

2012-03-16 Thread Michael Snoyman
The Yesod docs all state very explicitly that we depend on the Haskell Platform, and in particular that alex needs to be installed. However, that doesn't stop this issue from confusing people. I think a good short term solution could be what Alan Zimmerman did with language-javascript: include the

Re: [Haskell-cafe] cabal-install problem with alex dependency in bytestring-lexing

2012-03-16 Thread Stephen Tetley
Alex is supplied as part of the Platform though which is the recommended system for beginners, is Yesod currently in advance of the Platform? On 16 March 2012 10:56, Erik de Castro Lopo wrote: > The problem is that many of the people trying out Yesod are newcomers to > Haskell. They are going to

Re: [Haskell-cafe] cabal-install problem with alex dependency in bytestring-lexing

2012-03-16 Thread Ivan Lazar Miljenovic
On 16 March 2012 21:56, Erik de Castro Lopo wrote: > Joachim Breitner wrote: > >> no, cabal-install does not automatically install build-tools at all, >> only Cabal checks them for compilation. I guess the reason is that >> build-tools needs to be put on the PATH, and that is beyond the scope of >

Re: [Haskell-cafe] cabal-install problem with alex dependency in bytestring-lexing

2012-03-16 Thread Erik de Castro Lopo
Joachim Breitner wrote: > no, cabal-install does not automatically install build-tools at all, > only Cabal checks them for compilation. I guess the reason is that > build-tools needs to be put on the PATH, and that is beyond the scope of > cabal-install. This is rather sub-optimal. One place wh

Re: [Haskell-cafe] cabal-install problem with alex dependency in bytestring-lexing

2012-03-16 Thread Joachim Breitner
Hi, Am Freitag, den 16.03.2012, 21:00 +1100 schrieb Erik de Castro Lopo: > With a base system with just ghc and cabal-install, if I try to install > bytestring-lexing I get: > > $ cabal install bytestring-lexing > Resolving dependencies... > Configuring bytestring-lexing-0.4.0... >

[Haskell-cafe] cabal-install problem with alex dependency in bytestring-lexing

2012-03-16 Thread Erik de Castro Lopo
Hi all, With a base system with just ghc and cabal-install, if I try to install bytestring-lexing I get: $ cabal install bytestring-lexing Resolving dependencies... Configuring bytestring-lexing-0.4.0... cabal: The program alex version >=2.3 is required but it could not be found.