[Haskell-cafe] ByteString in patterns

Bulat Ziganshin bulat.ziganshin at gmail.com
Tue Mar 10 18:40:35 EDT 2009


Hello Manlio,

Wednesday, March 11, 2009, 1:28:13 AM, you wrote:

> Using normal String type I can define a pattern like:

> But if I want to use ByteString, what should I do?
> This seems impossible, since ByteString data constructor is not available.

for numeric types, it works via Num instances. we have now IsString
type, may be it provides the same feature? i.e., are you tried? :)

-- 
Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com



More information about the Haskell-Cafe mailing list