[Haskell-cafe] Stream fusion and span/break/group/init/tails

Andrew Cowie andrew at operationaldynamics.com
Fri Apr 26 07:30:49 CEST 2013


On Thu, 2013-04-25 at 21:15 -0700, Johan Tibell wrote:

> {-# LANGUAGE Strict #-}

God, I would love this. Obviously the plugin approach could do it, but
could not GHC itself just _not create thunks_ for things unless told to
be lazy in the presence of such a pragma?

[at which point, we need an annotation for laziness, instead of the
annotation for strictness. We're not using ampersand for anything, are
we?

        func Int -> Thing -> WorldPeace
        func &a &b = ...
        
Ah, bikeshed, how we love thee]

AfC
Sydney





More information about the Haskell-Cafe mailing list