[Haskell-cafe] self-referential data
brian
brianchina60221 at gmail.com
Sat Aug 9 18:09:06 EDT 2008
>From https://secure.wikimedia.org/wikipedia/en/wiki/Bencoding , I
think I should code
data BValue = BString String
| BInteger Integer
| BList [BValue]
| BDictionary (M.Map BString BValue)
but: Not in scope: type constructor or class `BString'
The implementations I've found just implemented BDictionary's map key
as String, but I think that's kind of wrong.
More information about the Haskell-Cafe
mailing list