[GHC] #1212: Add IPv6 support to network library

GHC trac at galois.com
Tue Mar 13 14:09:00 EDT 2007


#1212: Add IPv6 support to network library
--------------------------------+-------------------------------------------
 Reporter:  bos at serpentine.com  |          Owner:                  
     Type:  proposal            |         Status:  new             
 Priority:  normal              |      Milestone:  Not GHC         
Component:  libraries/network   |        Version:  6.6             
 Severity:  normal              |     Resolution:                  
 Keywords:                      |     Difficulty:  Moderate (1 day)
 Testcase:                      |   Architecture:  Multiple        
       Os:  Multiple            |  
--------------------------------+-------------------------------------------
Comment (by panne):

 I haven't looked into the patch in detail, but I have one general remark:
 It is very bad if the set of exported entities of a Haskell module is
 platform-dependent. This leads to the need of an "autoconf at the Haskell
 level", which is not very desirable. Your suggested patch is not the only
 culprit in the standard libraries, but let at least not make things worse.
 A better strategy is to supply default values and/or fallback
 implementations for things not directly supported on the platform in
 question, even if the implementation is more limited or even 'ioError
 (userError "not supported")'. This way, platform differences can be
 handled at runtime, often during normal error handling.

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


More information about the Glasgow-haskell-bugs mailing list