#4379: Add Random instances for more base types
---------------------------------+------------------------------------------
    Reporter:  basvandijk        |       Owner:                  
        Type:  proposal          |      Status:  new             
    Priority:  normal            |   Component:  libraries/random
     Version:  6.12.3            |    Keywords:                  
    Testcase:                    |   Blockedby:                  
          Os:  Unknown/Multiple  |    Blocking:                  
Architecture:  Unknown/Multiple  |     Failure:  None/Unknown    
---------------------------------+------------------------------------------
 Proposal:

 Add `Random` instances for:

  * all the types in `Data.Int`:
   (`Int` is already provided)
   `Int8`,
   `Int16`,
   `Int32`,
   `Int64`

  * all the types in `Data.Word`:
   `Word`,
   `Word8`,
   `Word16`,
   `Word32`,
   `Word64`

  * almost all the types in `Foreign.C.Types`:
   `CChar`,
   `CSChar`,
   `CUChar`,
   `CShort`,
   `CUShort`,
   `CInt`,
   `CUInt`,
   `CLong`,
   `CULong`,
   `CPtrdiff`,
   `CSize`,
   `CWchar`
   `CSigAtomic`,
   `CLLong`,
   `CULLong`,
   `CIntPtr`,
   `CUIntPtr`,
   `CIntMax`,
   `CUIntMax`,
   `CFloat`,
   `CDouble`

 Does it make sense to have `Random` instances for `CClock` and `CTime`?

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4379>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to