Yes – I could move the show() back to the test definitions.
This was also mostly/partly to better understand how to do this.
Thanks.
From: Brandon Allbery [mailto:allbery.b@gmail.com]
Sent: Saturday, November 5, 2016 3:51 PM
To: Gregory Guthrie <guthrie@mum.edu>
Cc: haskell-cafe@haskell.org
Subject: Re: [Haskell-cafe] typeclass constraints?
On Sat, Nov 5, 2016 at 3:09 PM, Gregory Guthrie <guthrie@mum.edu> wrote:
So each test is of type: (String, value), for various value types all of which (only) have to be members of the Show class.
Had you considered [(String, String)]? Remember that Haskell is lazy; it's not going to evaluate those expressions until their values are needed for e.g. I/O.
--
brandon s allbery kf8nh sine nomine associates
unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net