[GHC] #4961: Make the Timeout exception a newtype instead of a datatype

GHC cvs-ghc at haskell.org
Tue Feb 15 22:30:00 CET 2011


#4961: Make the Timeout exception a newtype instead of a datatype
---------------------------------+------------------------------------------
    Reporter:  basvandijk        |       Owner:                
        Type:  task              |      Status:  new           
    Priority:  normal            |   Component:  libraries/base
     Version:  7.0.1             |    Keywords:                
    Testcase:                    |   Blockedby:                
          Os:  Unknown/Multiple  |    Blocking:                
Architecture:  Unknown/Multiple  |     Failure:  None/Unknown  
---------------------------------+------------------------------------------
 The attached patch simply replaces the `data` with a `newtype` for the
 `Timeout` exception in
 [http://hackage.haskell.org/packages/archive/base/latest/doc/html/System-
 Timeout.html System.Timeout]:
 {{{
 -data    Timeout = Timeout Unique deriving Eq
 +newtype Timeout = Timeout Unique deriving Eq
 }}}

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



More information about the Glasgow-haskell-bugs mailing list