Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
This Module will be removed in the future in favor of classes defined in Data.TypedEncoding.Common.Class.Util.StringConstraints
This module is re-exported in Data.TypedEncoding and it is best not to import it directly.
Documentation
>>>
:set -XScopedTypeVariables -XTypeApplications -XAllowAmbiguousTypes
>>>
import Test.QuickCheck
>>>
import Test.QuickCheck.Instances.Text()
>>>
import Test.QuickCheck.Instances.ByteString()
class IsStringR a where Source #
This class will be removed in 0.3.x.x in favor of classes definined in Data.TypedEncoding.Common.Class.Util.StringConstraints
Reverses IsString
laws:
toString . fromString == id fromString . toString == id
Note: ByteString is not a valid instance, ByteString "r-ASCII", or "r-UTF8" would
be needed.
B.unpack $ B.pack "160688" == "176"
Since: 0.2.0.0