[Haskell-cafe] More on the random idea

Isaac Dupree isaacdupree at charter.net
Sun May 27 12:58:37 EDT 2007


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

Isaac Dupree wrote:
> "The expression is bound to a random top level identifier (harmless to
> guess)"
> 
> What about the non-recursive
> 
> case ...expr... of x -> take 2048 (show x)
> 
> this way expr can't refer to x (it doesn't at all need to be randomly
> generated this way) and definitely can't bind other things like take and
> show (they probably should be qualified anyway)

er, wait, I'm confused. Is it top-level? If not, it could just be

take 2048 (show ( ...expr... ))

and it doesn't look top-level to me from the lambdabot code in
scripts/RunPlugs.hs

Isaac
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGWbi8HgcxvIWYTTURAqaMAKCxzKOW+6RDe2kTG6KX8lktQnwY1QCgyO5S
jCJQKnGhAi3NLO1bzzbeLzI=
=Innv
-----END PGP SIGNATURE-----


More information about the Haskell-Cafe mailing list