Quantcast

[GHC] #7018: Preprocess code before checking safety

classic Classic list List threaded Threaded
2 messages Options
GHC
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[GHC] #7018: Preprocess code before checking safety

GHC
#7018: Preprocess code before checking safety
---------------------------------------+------------------------------------
 Reporter:  favonia                    |          Owner:                  
     Type:  feature request            |         Status:  new            
 Priority:  normal                     |      Component:  Compiler        
  Version:  7.4.2                      |       Keywords:                  
       Os:  Unknown/Multiple           |   Architecture:  Unknown/Multiple
  Failure:  GHC rejects valid program  |       Testcase:                  
Blockedby:                             |       Blocking:                  
  Related:                             |  
---------------------------------------+------------------------------------
 Apparently GHC checks safety (as safe Haskell) before preprocessing. This
 is sometimes undesirable; for example:

 {{{
 #if __GLASGOW_HASKELL__ >= 702
 import Foreign.Safe
 #else
 import Foreign
 #endif
 }}}

 Not sure if preprocessing will break the design of safe Haskell, but if it
 won't I hope GHC can accept this code as safe.

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

_______________________________________________
Glasgow-haskell-bugs mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
GHC
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [GHC] #7018: Preprocess code before checking safety

GHC
#7018: Preprocess code before checking safety
---------------------------------+------------------------------------------
    Reporter:  favonia           |        Owner:                          
        Type:  feature request   |       Status:  closed                  
    Priority:  normal            |    Component:  Compiler                
     Version:  7.4.2             |   Resolution:  invalid                  
    Keywords:                    |           Os:  Unknown/Multiple        
Architecture:  Unknown/Multiple  |      Failure:  GHC rejects valid program
    Testcase:                    |    Blockedby:                          
    Blocking:                    |      Related:                          
---------------------------------+------------------------------------------
Changes (by favonia):

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


Comment:

 I am sorry but I cannot reproduce this error anymore. Perhaps I messed up
 something before.

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

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