This is a duplicate of #139 but I have different needs.
I use QuickCheck, and when it finds a failure, it prints out the failing input as a string using "show".
Sometimes I would like to manually run this same input again. The easiest way is to copy&paste this output directly into my source code (using something like Text-RawString-QQ) and then convert it into the input using "read".
Without "read", I must manually fixup the string so it will be valid Haskell code. This often involves adding qualifications to stuff like "fromList", and in the case of this library, requires converting all path strings to quasiquote format. This is obviously quite annoying and a frustrating waste of time.
A Read instance would streamline this workflow greatly (in addition to having other possible benefits). I am not aware of any downsides to adding a Read instance.
This is a duplicate of #139 but I have different needs.
I use QuickCheck, and when it finds a failure, it prints out the failing input as a string using "show".
Sometimes I would like to manually run this same input again. The easiest way is to copy&paste this output directly into my source code (using something like Text-RawString-QQ) and then convert it into the input using "read".
Without "read", I must manually fixup the string so it will be valid Haskell code. This often involves adding qualifications to stuff like "fromList", and in the case of this library, requires converting all path strings to quasiquote format. This is obviously quite annoying and a frustrating waste of time.
A
Read
instance would streamline this workflow greatly (in addition to having other possible benefits). I am not aware of any downsides to adding aRead
instance.Thank you