fork download
  1. import Control.Monad (replicateM)
  2.  
  3. data Govno a = Govno
  4. deriving (Show)
  5.  
  6. instance Monad Govno where
  7.  
  8. -- Govno is the minimal possible context
  9. return x = Govno
  10.  
  11. -- All operations on Govno produce Govno
  12. g >>= f = Govno
  13.  
  14. main = print (replicateM 3 Govno)
  15.  
Success #stdin #stdout 0.01s 3536KB
stdin
Standard input is empty
stdout
Govno