instance Read t => IsString t where fromString = read

main = if "True" then print "1" else error undefined

Follow

if there is one line of code that makes all haskellers throw up in their mouth a little bit, it's probably that instance.

(Or some other instance.)

Sign in to participate in the conversation
Octodon

Octodon is a nice general purpose instance. more