@@ -17,13 +17,13 @@ instance Arbitrary ValidIdent where
17 arbitrary = ValidIdent <$> ((:) <$> lowerAlpha <*> (listOf alphaNumUnderPrime))
17 arbitrary = ValidIdent <$> ((:) <$> lowerAlpha <*> (listOf alphaNumUnderPrime))
20−newtype StringValue = StringValue String deriving (Eq, Show)
20+newtype StringLiteral = StringLiteral String deriving (Eq, Show)
22−instance ShowQ StringValue where
22+instance ShowQ StringLiteral where
23− showQ (StringValue v) = v
23+ showQ (StringLiteral v) = v
25−instance Arbitrary StringValue where
25+instance Arbitrary StringLiteral where
26− arbitrary = StringValue <$> escape <$> arbitrary
26+ arbitrary = StringLiteral <$> (\x -> "\"" ++ x ++ "\"") <$> escape <$> arbitrary
29newtype InvalidIdentChar = InvalidIdentChar Char deriving (Eq, Show)
29newtype InvalidIdentChar = InvalidIdentChar Char deriving (Eq, Show)