Missteps of a Narwhal Calf

  • 1
Those Prelude.read errors happen when a call to "read" can't find a parser for the data type it is being called on. For example, I once tried to cast strings (well, UUIDs to strings to ints) to ints by reading the string as ASCII. But it didn't work. The default "read" implementation only handles characters that are numbers. Replacing by "sum $ map ord $ string" worked okay (but there are overflow issues to deal with then)
(Frozen) (Thread)

  • 1

Log in