Paste number 26606: monomorphism

Paste number 26606: monomorphism
Pasted by: br1
2 years, 3 months ago
#haskell
Paste contents:
Raw Source | XML | Display As
forEachPos = sequence . replicate 9 . sequence . replicate 9
-- Should have type
-- forEachPos :: Monad m => m a -> m [[a]]

-- I get
-- forEachPos :: IO a -> IO [[a]]
-- if I use forEachPos in the file
-- and a compile error if I don't

This paste has no annotations.

Colorize as:
Show Line Numbers

Lisppaste pastes can be made by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively.