Re: [GHC] #5942: implement POSIX confstr() in System/Posix/Unistd.hsc

2012-07-30 Thread GHC
#5942: implement POSIX confstr() in System/Posix/Unistd.hsc
---+
  Reporter:  clint |  Owner: 
  Type:  feature request   | Status:  new
  Priority:  normal|  Milestone:  7.6.1  
 Component:  libraries/unix|Version:  7.4.1  
Resolution:|   Keywords:  confstr
Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple   
   Failure:  None/Unknown  | Difficulty:  Easy (less than 1 hour)
  Testcase:|  Blockedby: 
  Blocking:|Related: 
---+

Comment(by simonmar):

 In general it's not OK to have platform-conditional APIs in the `unix`
 package.  Typically a missing function will throw an exception (e.g.
 `getSlaveTerminalName`), or fall back to a portable version (e.g.
 `unsetEnv`).  Where there are constants or symbols that need to be
 conditional, we use a `.Exts` module (see e.g.
 `System.Posix.Signals.Exts`).

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/5942#comment:6
GHC http://www.haskell.org/ghc/
The Glasgow Haskell Compiler

___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #5942: implement POSIX confstr() in System/Posix/Unistd.hsc

2012-07-21 Thread GHC
#5942: implement POSIX confstr() in System/Posix/Unistd.hsc
---+
  Reporter:  clint |  Owner: 
  Type:  feature request   | Status:  new
  Priority:  normal|  Milestone:  7.6.1  
 Component:  libraries/unix|Version:  7.4.1  
Resolution:|   Keywords:  confstr
Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple   
   Failure:  None/Unknown  | Difficulty:  Easy (less than 1 hour)
  Testcase:|  Blockedby: 
  Blocking:|Related: 
---+

Comment(by clint):

 So can they be included conditionally?

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/5942#comment:5
GHC http://www.haskell.org/ghc/
The Glasgow Haskell Compiler

___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #5942: implement POSIX confstr() in System/Posix/Unistd.hsc

2012-07-16 Thread GHC
#5942: implement POSIX confstr() in System/Posix/Unistd.hsc
+---
Reporter:  clint|   Owner:  simonmar
Type:  feature request  |  Status:  patch   
Priority:  normal   |   Milestone:  7.6.1   
   Component:  libraries/unix   | Version:  7.4.1   
Keywords:  confstr  |  Os:  Unknown/Multiple
Architecture:  Unknown/Multiple | Failure:  None/Unknown
  Difficulty:  Easy (less than 1 hour)  |Testcase:  
   Blockedby:   |Blocking:  
 Related:   |  
+---
Changes (by simonpj):

  * owner:  = simonmar


-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/5942#comment:3
GHC http://www.haskell.org/ghc/
The Glasgow Haskell Compiler

___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #5942: implement POSIX confstr() in System/Posix/Unistd.hsc

2012-07-16 Thread GHC
#5942: implement POSIX confstr() in System/Posix/Unistd.hsc
---+
  Reporter:  clint |  Owner: 
  Type:  feature request   | Status:  new
  Priority:  normal|  Milestone:  7.6.1  
 Component:  libraries/unix|Version:  7.4.1  
Resolution:|   Keywords:  confstr
Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple   
   Failure:  None/Unknown  | Difficulty:  Easy (less than 1 hour)
  Testcase:|  Blockedby: 
  Blocking:|Related: 
---+
Changes (by simonmar):

  * owner:  simonmar =
  * status:  patch = new


Comment:

 `confstr` is fine, but most of those values (e.g. `_CS_LFS_CFLAGS`) are
 non-portable as far as I can tell.  The only portable one is `_CS_PATH`.

 See e.g. the POSIX pages that list the standard defines:
 [http://pubs.opengroup.org/onlinepubs/009695399/basedefs/unistd.h.html]
 and
 [http://pubs.opengroup.org/onlinepubs/009695399/functions/confstr.html]

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/5942#comment:4
GHC http://www.haskell.org/ghc/
The Glasgow Haskell Compiler

___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #5942: implement POSIX confstr() in System/Posix/Unistd.hsc

2012-03-15 Thread GHC
#5942: implement POSIX confstr() in System/Posix/Unistd.hsc
+---
Reporter:  clint|   Owner:  
Type:  feature request  |  Status:  patch   
Priority:  normal   |   Milestone:  7.6.1   
   Component:  libraries/unix   | Version:  7.4.1   
Keywords:  confstr  |  Os:  Unknown/Multiple
Architecture:  Unknown/Multiple | Failure:  None/Unknown
  Difficulty:  Easy (less than 1 hour)  |Testcase:  
   Blockedby:   |Blocking:  
 Related:   |  
+---
Changes (by pcapriotti):

  * status:  new = patch
  * difficulty:  = Easy (less than 1 hour)
  * milestone:  = 7.6.1


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

___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


[GHC] #5942: implement POSIX confstr() in System/Posix/Unistd.hsc

2012-03-14 Thread GHC
#5942: implement POSIX confstr() in System/Posix/Unistd.hsc
--+-
 Reporter:  clint |  Owner:  
 Type:  feature request   | Status:  new 
 Priority:  normal|  Component:  libraries/unix  
  Version:  7.4.1 |   Keywords:  confstr 
   Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple
  Failure:  None/Unknown  |   Testcase:  
Blockedby:|   Blocking:  
  Related:|  
--+-


-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/5942
GHC http://www.haskell.org/ghc/
The Glasgow Haskell Compiler

___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #5942: implement POSIX confstr() in System/Posix/Unistd.hsc

2012-03-14 Thread GHC
#5942: implement POSIX confstr() in System/Posix/Unistd.hsc
--+-
 Reporter:  clint |  Owner:  
 Type:  feature request   | Status:  new 
 Priority:  normal|  Component:  libraries/unix  
  Version:  7.4.1 |   Keywords:  confstr 
   Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple
  Failure:  None/Unknown  |   Testcase:  
Blockedby:|   Blocking:  
  Related:|  
--+-
Changes (by clint):

 * cc: clint@… (added)


-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/5942#comment:1
GHC http://www.haskell.org/ghc/
The Glasgow Haskell Compiler

___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs