#4869: ghci command line option -l should accept either -llibrary or -l library
(POSIX requirement)
---------------------------------+------------------------------------------
    Reporter:  hgolden           |        Owner:                             
        Type:  bug               |       Status:  new                        
    Priority:  normal            |    Milestone:  7.2.1                      
   Component:  GHCi              |      Version:  7.0.1                      
    Keywords:                    |     Testcase:  See description            
   Blockedby:                    |   Difficulty:                             
          Os:  Unknown/Multiple  |     Blocking:                             
Architecture:  Unknown/Multiple  |      Failure:  Incorrect result at runtime
---------------------------------+------------------------------------------

Comment(by hgolden):

 Replying to [comment:1 igloo]:
 > This is a POSIX requirement for cc or ld, presumably?

 Yes. See the c99 description:
 http://pubs.opengroup.org/onlinepubs/9699919799/utilities/c99.html

 Also, the general POSIX guidelines for options specify separating options
 from arguments. This is not mandatory, only a guideline. I believe the
 principle of least astonishment (or surprise) justifies this change in
 GHCi (see http://www.faqs.org/docs/artu/ch11s01.html).

 Looking at compiler/main/DynFlags.hs the patch may be as simple as
 changing

 {{{  , Flag "l"   (AnySuffix (upd . addOptl))}}}

 to

 {{{  , Flag "l"   (hasArg addOptl)}}}

 which is the same code as Flag "optl". I haven't tested this.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4869#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler

_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to