[Haskell-beginners] newtype record syntax

Brandon S Allbery KF8NH allbery at ece.cmu.edu
Thu Jul 15 00:59:24 EDT 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 7/14/10 07:41 , Tom Doris wrote:
> Yes, makes sense, I always thought of the projection functions as being
> secondary. Thanks

Sometimes they are; but take a look at the definitions of various state-like
monads (State, Reader, Writer; ST also fits but has other things that might
well confuse rather than enlighten).  State is probably the easiest to
understand, since it's just syntactic sugar for a tuple,
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkw+lawACgkQIn7hlCsL25X1dACbBB/E6tanorQ0Vht9pS4k3GiQ
SLkAn2gTdkhN55Cl4MSCKHoCVVRcBMWX
=wpVd
-----END PGP SIGNATURE-----


More information about the Beginners mailing list