[Haskell-cafe] haskell2010 and state question.

Brandon S Allbery KF8NH allbery at ece.cmu.edu
Sun Dec 12 02:22:58 CET 2010


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

On 12/9/10 20:40 , Magicloud Magiclouds wrote:
> First to notice that. So standard-wise, there is no way to do state thing?

There seems to be a lot of confusion as to what the language standard
covers.  It is a bare minimum; practical libraries are not part of its
purview, but only the minimum needed to make implementing practical
libraries possible.

This includes some baked-in assumptions:  for example, the "do" construct
requires that the Monad typeclass support a "fail" method, numeric literals
require the Num typeclass to support a "fromIntegral" method, etc., and
since you can't extend typeclasses after definition that means Num and Monad
are overspecified compared to other types in the language standard.

Take a look at the Haskell Platform for a practical compiler-and-libraries
standard.

- -- 
brandon s. allbery     [linux,solaris,freebsd,perl]      allbery at kf8nh.com
system administrator  [openafs,heimdal,too many hats]  allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university      KF8NH
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.10 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk0EI/IACgkQIn7hlCsL25Xc1wCgi9saZgo9h4RScI+ZAyR843sG
eHoAn2J7Yfn664oaL1zAEZxQDLCat04k
=SDlV
-----END PGP SIGNATURE-----



More information about the Haskell-Cafe mailing list