You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Most datatypes implement Show in such a way that the result is a valid Haskell code (maybe with some extensions turned on, but still). However, before fixing the Show instance, I would consider a better way to encode Books. E.g. something like this (although I'm not sure if it's possible):
Book [#age =: 30, #name =: "Jane"]
The text was updated successfully, but these errors were encountered:
Most datatypes implement
Show
in such a way that the result is a valid Haskell code (maybe with some extensions turned on, but still). However, before fixing theShow
instance, I would consider a better way to encodeBook
s. E.g. something like this (although I'm not sure if it's possible):The text was updated successfully, but these errors were encountered: