[GHC] #8347: Add a Strict LANGUAGE pragma

GHC ghc-devs at haskell.org
Mon Sep 23 17:46:48 CEST 2013


#8347: Add a Strict LANGUAGE pragma
------------------------------------+-------------------------------------
       Reporter:  tibbe             |             Owner:
           Type:  feature request   |            Status:  new
       Priority:  normal            |         Milestone:
      Component:  Compiler          |           Version:  7.6.3
       Keywords:                    |  Operating System:  Unknown/Multiple
   Architecture:  Unknown/Multiple  |   Type of failure:  None/Unknown
     Difficulty:  Unknown           |         Test Case:
     Blocked By:                    |          Blocking:
Related Tickets:                    |
------------------------------------+-------------------------------------
 A `Strict` `LANGUAGE` pragma would allow us to experiment with writing in
 a strict sub-language. Since this pragma works on a per module basis, it
 needs to be modular. I propose the following semantics:

  * Patterns are strict at the top-level, as if they had a top-level bang,
 unless an explicit ~ is used to make the pattern lazy.
  * Functions evaluate their parameters to WHNF.
  * Data type fields are strict (as if they had a bang-pattern).

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



More information about the ghc-tickets mailing list