On 11/17/05, Greg Woodhouse <[EMAIL PROTECTED]> wrote:
Perhaps, but I always have spaces on either side when it's function composition. Isn't there already an ambiguity?
-- I bet there's a quicker way to do this ...
module M where data M a = M a deriving (Show)
data T a = T a deriving (Show)
module M.T where f = (+1)
import M
import qualified M.T
f = (*2)
v1 = M . T . f $ 5
v2 = M.T.f $ 5
main = do { print v1; print v2; return () }
Isn't there a potential for confusion with function composition (f . g)?
Perhaps, but I always have spaces on either side when it's function composition. Isn't there already an ambiguity?
-- I bet there's a quicker way to do this ...
module M where data M a = M a deriving (Show)
data T a = T a deriving (Show)
module M.T where f = (+1)
import M
import qualified M.T
f = (*2)
v1 = M . T . f $ 5
v2 = M.T.f $ 5
main = do { print v1; print v2; return () }
Fraser.
_______________________________________________ Haskell-Cafe mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell-cafe
