Hackage | 1 Dec 2008 05:09
Favicon

[Hackage] #418: 'cabal check' should warn about open lower bounds

#418: 'cabal check' should warn about open lower bounds
---------------------------------+------------------------------------------
  Reporter:  Saizan              |        Owner:        
      Type:  enhancement         |       Status:  new   
  Priority:  normal              |    Milestone:        
 Component:  cabal-install tool  |      Version:  HEAD  
  Severity:  normal              |     Keywords:        
Difficulty:  easy (<4 hours)     |   Ghcversion:  6.10.1
  Platform:                      |  
---------------------------------+------------------------------------------
 Dependencies of the form "foo > x" don't really make sense given the
 hackage version policy, since they exclude x but include x.y which is
 supposed to have a similar api, and if you want something introduced in a
 minor (or lesser) release you can explicitly mention that.

 Also what is often intended with that notation is foo >= (x+1), causing
 confusion.

 I propose that we allow only closed lower bounds, i.e. foo >= x.

-- 
Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/418>
Hackage <http://haskell.org/cabal/>
Hackage: Cabal and related projects
#418: 'cabal check' should warn about open lower bounds
---------------------------------+------------------------------------------
  Reporter:  Saizan              |        Owner:        
      Type:  enhancement         |       Status:  new   
  Priority:  normal              |    Milestone:        
(Continue reading)

Hackage | 1 Dec 2008 10:37
Favicon

Re: [Hackage] #418: 'cabal check' should warn about open lower bounds

#418: 'cabal check' should warn about open lower bounds
---------------------------------+------------------------------------------
  Reporter:  Saizan              |        Owner:                 
      Type:  enhancement         |       Status:  closed         
  Priority:  normal              |    Milestone:                 
 Component:  cabal-install tool  |      Version:  HEAD           
  Severity:  normal              |   Resolution:  duplicate      
  Keywords:                      |   Difficulty:  easy (<4 hours)
Ghcversion:  6.10.1              |     Platform:                 
---------------------------------+------------------------------------------
Changes (by duncan):

  * status:  new => closed
  * resolution:  => duplicate

Comment:

 Duplicate of #395

-- 
Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/418#comment:1>
Hackage <http://haskell.org/cabal/>
Hackage: Cabal and related projects
#418: 'cabal check' should warn about open lower bounds
---------------------------------+------------------------------------------
  Reporter:  Saizan              |        Owner:                 
      Type:  enhancement         |       Status:  closed         
  Priority:  normal              |    Milestone:                 
 Component:  cabal-install tool  |      Version:  HEAD           
(Continue reading)

Hackage | 1 Dec 2008 10:37
Favicon

Re: [Hackage] #395: Warn about dependencies like parsec <= 2.1.0.0

#395: Warn about dependencies like parsec <= 2.1.0.0
----------------------------+-----------------------------------------------
  Reporter:  duncan         |        Owner:                     
      Type:  enhancement    |       Status:  new                
  Priority:  normal         |    Milestone:                     
 Component:  Cabal library  |      Version:                     
  Severity:  normal         |   Resolution:                     
  Keywords:                 |   Difficulty:  very easy (<1 hour)
Ghcversion:  6.8.3          |     Platform:                     
----------------------------+-----------------------------------------------
Changes (by duncan):

 * cc: Saizan (added)

Comment:

 In #418 Saizan notes:

 Dependencies of the form "foo > x" don't really make sense given the
 hackage version policy, since they exclude x but include x.y which is
 supposed to have a similar api, and if you want something introduced in a
 minor (or lesser) release you can explicitly mention that.

 Also what is often intended with that notation is foo >= (x+1), causing
 confusion.

 I propose that we allow only closed lower bounds, i.e. foo >= x.

-- 
Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/395#comment:2>
(Continue reading)

Hackage | 1 Dec 2008 10:38
Favicon

Re: [Hackage] #395: Warn about dependencies like parsec <= 2.1.0.0

#395: Warn about dependencies like parsec <= 2.1.0.0
----------------------------+-----------------------------------------------
  Reporter:  duncan         |        Owner:                     
      Type:  enhancement    |       Status:  new                
  Priority:  normal         |    Milestone:                     
 Component:  Cabal library  |      Version:                     
  Severity:  normal         |   Resolution:                     
  Keywords:                 |   Difficulty:  very easy (<1 hour)
Ghcversion:  6.8.3          |     Platform:                     
----------------------------+-----------------------------------------------
Comment (by duncan):

 So, in general we should say that open lower bounds and closed upper
 bounds are rather suspicious (given any sensible semantics to version
 numbers).

-- 
Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/395#comment:3>
Hackage <http://haskell.org/cabal/>
Hackage: Cabal and related projects
#395: Warn about dependencies like parsec <= 2.1.0.0
----------------------------+-----------------------------------------------
  Reporter:  duncan         |        Owner:                     
      Type:  enhancement    |       Status:  new                
  Priority:  normal         |    Milestone:                     
 Component:  Cabal library  |      Version:                     
  Severity:  normal         |   Resolution:                     
  Keywords:                 |   Difficulty:  very easy (<1 hour)
Ghcversion:  6.8.3          |     Platform:                     
(Continue reading)

Andrea Vezzosi | 1 Dec 2008 12:52
Picon
Gravatar

darcs patch: Fix #396 and add let .Haddock find autogen modules

Mon Dec  1 12:48:53 ora solare Europa occidentale 2008  Andrea Vezzosi <sanzhiyan <at> gmail.com>
  * Fix #396 and add let .Haddock find autogen modules

<div><p>Mon Dec&nbsp; 1 12:48:53 ora solare Europa occidentale 2008&nbsp; Andrea Vezzosi &lt;<a href="mailto:sanzhiyan <at> gmail.com">sanzhiyan <at> gmail.com</a>&gt;<br>&nbsp; * Fix #396 and add let .Haddock find autogen modules<br></p></div>
Hackage | 1 Dec 2008 15:57
Favicon

[Hackage] #419: cabal-install: upgrade complains about missing .cabal file

#419: cabal-install: upgrade complains about missing .cabal file
---------------------------------+------------------------------------------
  Reporter:  jimburton           |        Owner:         
      Type:  defect              |       Status:  new    
  Priority:  normal              |    Milestone:         
 Component:  cabal-install tool  |      Version:  1.4.0.2
  Severity:  normal              |     Keywords:         
Difficulty:  normal              |   Ghcversion:  6.8.3  
  Platform:                      |  
---------------------------------+------------------------------------------
 I am using cabal-install 0.5.2. I have previously installed cgi (and other
 packages) locally. Now when I try to upgrade them all:

 Resolving dependencies...
 cabal: Couldn't read cabal file "./cgi/3001.1.7.1/cgi.cabal"

 I presumed that the starting point in that path was
 ~/.cabal/packages/hackage.haskell.org. In cgi/3001.1.7.1 there is just the
 tarball for the package but opening it and putting the .cabal file in the
 right place didn't help.

-- 
Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/419>
Hackage <http://haskell.org/cabal/>
Hackage: Cabal and related projects
#419: cabal-install: upgrade complains about missing .cabal file
---------------------------------+------------------------------------------
  Reporter:  jimburton           |        Owner:         
      Type:  defect              |       Status:  new    
  Priority:  normal              |    Milestone:         
 Component:  cabal-install tool  |      Version:  1.4.0.2
  Severity:  normal              |     Keywords:         
Difficulty:  normal              |   Ghcversion:  6.8.3  
  Platform:                      |  
---------------------------------+------------------------------------------
 I am using cabal-install 0.5.2. I have previously installed cgi (and other
 packages) locally. Now when I try to upgrade them all:

 Resolving dependencies...
 cabal: Couldn't read cabal file "./cgi/3001.1.7.1/cgi.cabal"

 I presumed that the starting point in that path was
 ~/.cabal/packages/hackage.haskell.org. In cgi/3001.1.7.1 there is just the
 tarball for the package but opening it and putting the .cabal file in the
 right place didn't help.

-- 
Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/419>
Hackage <http://haskell.org/cabal/>
Hackage: Cabal and related projects
Andrea Vezzosi | 1 Dec 2008 16:00
Picon
Gravatar

Re: darcs patch: Fix #396 and add let .Haddock find autogen modules



On Mon, Dec 1, 2008 at 12:52 PM, Andrea Vezzosi <sanzhiyan <at> gmail.com> wrote:
Mon Dec  1 12:48:53 ora solare Europa occidentale 2008  Andrea Vezzosi <sanzhiyan <at> gmail.com>
  * Fix #396 and add let .Haddock find autogen modules

<div>
<br><br><div class="gmail_quote">On Mon, Dec 1, 2008 at 12:52 PM, Andrea Vezzosi <span dir="ltr">&lt;<a href="mailto:sanzhiyan <at> gmail.com">sanzhiyan <at> gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote">
Mon Dec&nbsp; 1 12:48:53 ora solare Europa occidentale 2008&nbsp; Andrea Vezzosi &lt;<a href="mailto:sanzhiyan <at> gmail.com" target="_blank">sanzhiyan <at> gmail.com</a>&gt;<br>&nbsp; * Fix #396 and add let .Haddock find autogen modules<br>
</blockquote>
</div>
<br>
</div>
Hackage | 1 Dec 2008 16:07
Favicon

Re: [Hackage] #419: cabal-install should handle packages that need a later Cabal version better

#419: cabal-install should handle packages that need a later Cabal version better
---------------------------------+------------------------------------------
  Reporter:  jimburton           |        Owner:         
      Type:  defect              |       Status:  new    
  Priority:  normal              |    Milestone:         
 Component:  cabal-install tool  |      Version:  1.4.0.2
  Severity:  normal              |   Resolution:         
  Keywords:                      |   Difficulty:  normal 
Ghcversion:  6.8.3               |     Platform:         
---------------------------------+------------------------------------------
Changes (by duncan):

  * summary:  cabal-install: upgrade complains about missing .cabal file =>
              cabal-install should handle packages that need
              a later Cabal version better

Comment:

 The problem is that cgi-3001.1.7.1 uses syntax that is new in Cabal-1.6
 and your version of cabal-install is using Cabal-1.4. So it's not that the
 file is missing (it isn't) but the .cabal file cannot be parsed.

 Try upgrading cabal-install and try again:
 `cabal install cabal-install`

 So there's not a lot we can do about this now. However we should be able
 to make cabal-install be a bit more graceful in handling packages that
 require a later version of Cabal to parse properly.

-- 
Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/419#comment:1>
Hackage <http://haskell.org/cabal/>
Hackage: Cabal and related projects
#419: cabal-install should handle packages that need a later Cabal version better
---------------------------------+------------------------------------------
  Reporter:  jimburton           |        Owner:         
      Type:  defect              |       Status:  new    
  Priority:  normal              |    Milestone:         
 Component:  cabal-install tool  |      Version:  1.4.0.2
  Severity:  normal              |   Resolution:         
  Keywords:                      |   Difficulty:  normal 
Ghcversion:  6.8.3               |     Platform:         
---------------------------------+------------------------------------------
Changes (by duncan):

  * summary:  cabal-install: upgrade complains about missing .cabal file =>
              cabal-install should handle packages that need
              a later Cabal version better

Comment:

 The problem is that cgi-3001.1.7.1 uses syntax that is new in Cabal-1.6
 and your version of cabal-install is using Cabal-1.4. So it's not that the
 file is missing (it isn't) but the .cabal file cannot be parsed.

 Try upgrading cabal-install and try again:
 `cabal install cabal-install`

 So there's not a lot we can do about this now. However we should be able
 to make cabal-install be a bit more graceful in handling packages that
 require a later version of Cabal to parse properly.

-- 
Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/419#comment:1>
Hackage <http://haskell.org/cabal/>
Hackage: Cabal and related projects
Hackage | 1 Dec 2008 17:02
Favicon

Re: [Hackage] #419: cabal-install should handle packages that need a later Cabal version better

#419: cabal-install should handle packages that need a later Cabal version better
---------------------------------+------------------------------------------
  Reporter:  jimburton           |        Owner:         
      Type:  defect              |       Status:  new    
  Priority:  normal              |    Milestone:         
 Component:  cabal-install tool  |      Version:  1.4.0.2
  Severity:  normal              |   Resolution:         
  Keywords:                      |   Difficulty:  normal 
Ghcversion:  6.8.3               |     Platform:         
---------------------------------+------------------------------------------
Comment (by jimburton):

 Replying to [comment:1 duncan]:
 > The problem is that cgi-3001.1.7.1 uses syntax that is new in Cabal-1.6
 and your version of cabal-install is using Cabal-1.4. So it's not that the
 file is missing (it isn't) but the .cabal file cannot be parsed.
 >
 > Try upgrading cabal-install and try again:
 > `cabal install cabal-install`
 >


 Thanks, but upgrading Cabal lib and cabal-install haven't helped. I
 couldn't upgrade Cabal with cabal-install ("No packages to install") so I
 downloaded Cabal 1.6 and installed it myself then used ghc-pkg to
 unregister older version of Cabal. Then I reinstalled cabal-install but it
 is still reporting the older version of cabal:

 jim <at> mowa624-jb162:~$ ghc-pkg list
 /usr/local/lib/ghc-6.8.3/package.conf:
     HTTP-3001.0.4, HUnit-1.2.0.0, QuickCheck-1.1.0.0, array-0.1.0.0,
     base-3.0.2.0, binary-0.4.3.1, bytestring-0.9.0.1.1, cgi-3001.1.6.0,
     containers-0.1.0.2, directory-1.0.0.1, fgl-5.4.2.0,
     filepath-1.1.0.0, {ghc-6.8.3}, haskell-src-1.0.1.2,
     haskell98-1.0.1.0, hpc-0.5.0.1, html-1.0.1.1, mtl-1.1.0.1,
     network-2.2.0.0, old-locale-1.0.0.0, old-time-1.0.0.0,
     packedstring-0.1.0.0, parallel-1.0.0.1, parsec-2.1.0.1,
     pretty-1.0.0.0, process-1.0.0.1, random-1.0.0.0, readline-1.0.1.0,
     regex-base-0.72.0.1, regex-compat-0.71.0.1, regex-posix-0.72.0.2,
     rts-1.0, stm-2.1.1.1, template-haskell-2.2.0.0, time-1.1.2.1,
     unix-2.3.0.1, xhtml-3000.2.0.0, zlib-0.4.0.4
 /home/jim/.ghc/i386-linux-6.8.3/package.conf:
     Agda-2.1.3, Cabal-1.6.0.1, HTTP-3001.1.3, HTTP-3001.1.4,
     QuickCheck-1.2.0.0, QuickCheck-2.1.0.1, X11-1.4.3, X11-xft-0.3,
     binary-0.4.3.1, binary-0.4.4, bytestring-0.9.1.3, cgi-3001.1.7.0,
     fgl-5.4.2.2, haskell-src-1.0.1.3, html-1.0.1.2, mtl-1.1.0.2,
     network-2.2.0.0, network-2.2.0.1, parsec-3.0.0, regex-base-0.93.1,
     regex-compat-0.92, regex-posix-0.93.2, stm-2.1.1.2, time-1.1.2.2,
     utf8-string-0.3.1.1, utf8-string-0.3.2, xhtml-3000.2.0.1,
     xmonad-0.8, xmonad-contrib-0.8, zlib-0.5.0.0
 jim <at> mowa624-jb162:~$ cabal install cabal-install
 Resolving dependencies...
 'cabal-install-0.6.0' is cached.
 Configuring cabal-install-0.6.0...
 Preprocessing executables for cabal-install-0.6.0...
 Building cabal-install-0.6.0...
 [ 1 of 29] Compiling Distribution.Client.Utils (
 Distribution/Client/Utils.hs, dist/build/cabal
 [..]
 [29 of 29] Compiling Main             ( ./Main.hs, dist/build/cabal/cabal-
 tmp/Main.o )
 Linking dist/build/cabal/cabal ...
 Installing: /home/jim/.cabal/bin
 jim <at> mowa624-jb162:~$ cabal --version
 cabal-install version 0.5.2
 using version 1.4.0.2 of the Cabal library

 ##############

 And cabal upgrade still doesn't work. I thought I might need to clean and
 reconfigure the cabal-install package myself so I tried that too, manually
 deleting ~/.cabal/bin/cabal and using `runhaskell Setup.hs --user ...' etc
 in the packages directory. After that I am still told I'm using Cabal 1.4.

 Thanks,

-- 
Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/419#comment:2>
Hackage <http://haskell.org/cabal/>
Hackage: Cabal and related projects
#419: cabal-install should handle packages that need a later Cabal version better
---------------------------------+------------------------------------------
  Reporter:  jimburton           |        Owner:         
      Type:  defect              |       Status:  new    
  Priority:  normal              |    Milestone:         
 Component:  cabal-install tool  |      Version:  1.4.0.2
  Severity:  normal              |   Resolution:         
  Keywords:                      |   Difficulty:  normal 
Ghcversion:  6.8.3               |     Platform:         
---------------------------------+------------------------------------------
Comment (by jimburton):

 Replying to [comment:1 duncan]:
 > The problem is that cgi-3001.1.7.1 uses syntax that is new in Cabal-1.6
 and your version of cabal-install is using Cabal-1.4. So it's not that the
 file is missing (it isn't) but the .cabal file cannot be parsed.
 >
 > Try upgrading cabal-install and try again:
 > `cabal install cabal-install`
 >


 Thanks, but upgrading Cabal lib and cabal-install haven't helped. I
 couldn't upgrade Cabal with cabal-install ("No packages to install") so I
 downloaded Cabal 1.6 and installed it myself then used ghc-pkg to
 unregister older version of Cabal. Then I reinstalled cabal-install but it
 is still reporting the older version of cabal:

 jim <at> mowa624-jb162:~$ ghc-pkg list
 /usr/local/lib/ghc-6.8.3/package.conf:
     HTTP-3001.0.4, HUnit-1.2.0.0, QuickCheck-1.1.0.0, array-0.1.0.0,
     base-3.0.2.0, binary-0.4.3.1, bytestring-0.9.0.1.1, cgi-3001.1.6.0,
     containers-0.1.0.2, directory-1.0.0.1, fgl-5.4.2.0,
     filepath-1.1.0.0, {ghc-6.8.3}, haskell-src-1.0.1.2,
     haskell98-1.0.1.0, hpc-0.5.0.1, html-1.0.1.1, mtl-1.1.0.1,
     network-2.2.0.0, old-locale-1.0.0.0, old-time-1.0.0.0,
     packedstring-0.1.0.0, parallel-1.0.0.1, parsec-2.1.0.1,
     pretty-1.0.0.0, process-1.0.0.1, random-1.0.0.0, readline-1.0.1.0,
     regex-base-0.72.0.1, regex-compat-0.71.0.1, regex-posix-0.72.0.2,
     rts-1.0, stm-2.1.1.1, template-haskell-2.2.0.0, time-1.1.2.1,
     unix-2.3.0.1, xhtml-3000.2.0.0, zlib-0.4.0.4
 /home/jim/.ghc/i386-linux-6.8.3/package.conf:
     Agda-2.1.3, Cabal-1.6.0.1, HTTP-3001.1.3, HTTP-3001.1.4,
     QuickCheck-1.2.0.0, QuickCheck-2.1.0.1, X11-1.4.3, X11-xft-0.3,
     binary-0.4.3.1, binary-0.4.4, bytestring-0.9.1.3, cgi-3001.1.7.0,
     fgl-5.4.2.2, haskell-src-1.0.1.3, html-1.0.1.2, mtl-1.1.0.2,
     network-2.2.0.0, network-2.2.0.1, parsec-3.0.0, regex-base-0.93.1,
     regex-compat-0.92, regex-posix-0.93.2, stm-2.1.1.2, time-1.1.2.2,
     utf8-string-0.3.1.1, utf8-string-0.3.2, xhtml-3000.2.0.1,
     xmonad-0.8, xmonad-contrib-0.8, zlib-0.5.0.0
 jim <at> mowa624-jb162:~$ cabal install cabal-install
 Resolving dependencies...
 'cabal-install-0.6.0' is cached.
 Configuring cabal-install-0.6.0...
 Preprocessing executables for cabal-install-0.6.0...
 Building cabal-install-0.6.0...
 [ 1 of 29] Compiling Distribution.Client.Utils (
 Distribution/Client/Utils.hs, dist/build/cabal
 [..]
 [29 of 29] Compiling Main             ( ./Main.hs, dist/build/cabal/cabal-
 tmp/Main.o )
 Linking dist/build/cabal/cabal ...
 Installing: /home/jim/.cabal/bin
 jim <at> mowa624-jb162:~$ cabal --version
 cabal-install version 0.5.2
 using version 1.4.0.2 of the Cabal library

 ##############

 And cabal upgrade still doesn't work. I thought I might need to clean and
 reconfigure the cabal-install package myself so I tried that too, manually
 deleting ~/.cabal/bin/cabal and using `runhaskell Setup.hs --user ...' etc
 in the packages directory. After that I am still told I'm using Cabal 1.4.

 Thanks,

-- 
Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/419#comment:2>
Hackage <http://haskell.org/cabal/>
Hackage: Cabal and related projects
Hackage | 1 Dec 2008 17:33
Favicon

Re: [Hackage] #419: cabal-install should handle packages that need a later Cabal version better

#419: cabal-install should handle packages that need a later Cabal version better
---------------------------------+------------------------------------------
  Reporter:  jimburton           |        Owner:         
      Type:  defect              |       Status:  new    
  Priority:  normal              |    Milestone:         
 Component:  cabal-install tool  |      Version:  1.4.0.2
  Severity:  normal              |   Resolution:         
  Keywords:                      |   Difficulty:  normal 
Ghcversion:  6.8.3               |     Platform:         
---------------------------------+------------------------------------------
Comment (by duncan):

 Replying to [comment:2 jimburton]:
 > Installing: /home/jim/.cabal/bin
 > jim <at> mowa624-jb162:~$ cabal --version
 > cabal-install version 0.5.2
 > using version 1.4.0.2 of the Cabal library

 You must have another instance of the `cabal` program on your `$PATH` that
 is shadowing the one you just installed.

 See `which cabal` it'll report something other than
 `/home/jim/.cabal/bin/cabal`.

-- 
Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/419#comment:3>
Hackage <http://haskell.org/cabal/>
Hackage: Cabal and related projects
#419: cabal-install should handle packages that need a later Cabal version better
---------------------------------+------------------------------------------
  Reporter:  jimburton           |        Owner:         
      Type:  defect              |       Status:  new    
  Priority:  normal              |    Milestone:         
 Component:  cabal-install tool  |      Version:  1.4.0.2
  Severity:  normal              |   Resolution:         
  Keywords:                      |   Difficulty:  normal 
Ghcversion:  6.8.3               |     Platform:         
---------------------------------+------------------------------------------
Comment (by duncan):

 Replying to [comment:2 jimburton]:
 > Installing: /home/jim/.cabal/bin
 > jim <at> mowa624-jb162:~$ cabal --version
 > cabal-install version 0.5.2
 > using version 1.4.0.2 of the Cabal library

 You must have another instance of the `cabal` program on your `$PATH` that
 is shadowing the one you just installed.

 See `which cabal` it'll report something other than
 `/home/jim/.cabal/bin/cabal`.

-- 
Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/419#comment:3>
Hackage <http://haskell.org/cabal/>
Hackage: Cabal and related projects

Gmane