> Should `test' evaluate to `[1,2,3,4,5,6]' or `[4,5,6,4,5,6,4,5,6]'?
> That is, should the `do' syntactic sugar expand to code that uses
> plain `>>' or `Prelude.>>'?
> 
> The Haskell 1.4 report is not clear on this point, IMHO.

Here is a quote from the report (3 Expressions):

   Free variables and constructors used in these translations refer to
   entities defined by the Prelude. To avoid clutter, we use True instead
   of Prelude.True or map instead of Prelude.map.

So, I think it's pretty clear that `do' expands to `Prelude.>>'.

        -- Lennart



Reply via email to