Created
March 20, 2010 13:37
-
-
Save marcmo/338676 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
newtype SpecialChar = SC { unSC :: Char } deriving Show | |
instance Arbitrary SpecialChar where | |
arbitrary = do | |
x <- oneof [choose ('\0','\55295'), choose ('\57344','\1114111')] | |
return (SC x) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment