[Hackage] #233: case of Boolean values "true" and "false" should not matter

Hackage trac at galois.com
Mon Feb 11 12:30:14 EST 2008

#233: case of Boolean values "true" and "false" should not matter
  Reporter:  guest          |        Owner:          
      Type:  defect         |       Status:  reopened
  Priority:  normal         |    Milestone:          
 Component:  Cabal library  |      Version: 
  Severity:  normal         |   Resolution:          
  Keywords:                 |   Difficulty:  normal  
Ghcversion:  6.8.2          |     Platform:          
Changes (by duncan):

  * status:  closed => reopened
  * resolution:  worksforme =>


 Doesn't work for me:

 flag foo
   default: false


 $ cabal configure
 cabal: Foo.cabal:28: Parse of field 'default' failed:

 And this makes sense given the parser being used:
     , simpleField "default"
         (text . show)    parseReadS
         flagDefault      (\val fl -> fl{ flagDefault = val })

 `parseReadS` just uses `read` so is case sensitive. The `buildable` field
 also uses `parseReadS` as a parser.

 I think we have the same problem for other enumerations like `build-type`,
 `tested-with`, `license` and `extensions` though it's not so clear in
 those cases if it should be case sensitive or not.

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

More information about the cabal-devel mailing list