Show
Ignore:
Timestamp:
10/27/05 03:54:07 (3 years ago)
Author:
autrijus
Message:

* Typed Thunks. This is a fairly self-contained change

to make lazy {...} values carry inferred types.

The upshot is that supplying a function with a lazy
value should pass MMD _without_ evaluating the thunk.

This is unspecced, and not at all reliable, but still
committed (by request of wolverian). If it turns out
to be not feasible or adversely impacts performance
and/or readability we can always revert back.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Types/Thunk.hs

    r2441 r7747  
    66 
    77instance ThunkClass VThunk where 
    8     thunk_force (MkThunk c) = c 
     8    thunk_iType (MkThunk _ t) = t 
     9    thunk_force (MkThunk c _) = c 
    910