[Haskell-cafe] Instances for Data.Text

Malcolm Wallace malcolm.wallace at cs.york.ac.uk
Tue Sep 29 12:59:29 EDT 2009


> instance Serial Text where
>  -- DOUBT: is this efficient?
>  series   d   = [T.pack (series d :: String)]
> -- DOUBT: how to define this
>  coseries rs  = error "coseries"
>
> What's Serial?

The class used in SmallCheck, similar to the Arbitrary class used by  
QuickCheck.

Regards,
     Malcolm



More information about the Haskell-Cafe mailing list