fork download
  1. import Control.Applicative
  2. import Control.Monad
  3.  
  4. x = [ "religious", "irreligious" ]
  5. y = [ "gnostic", "agnostic" ]
  6. z = [ "theist", "atheist" ]
  7.  
  8. validPositions = (\a b c -> show a + " " + show b + " " + show c) <$> x <*> y <*> z
  9.  
  10. main = validPositions map_ putStrLn
  11.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
[1 of 1] Compiling Main             ( prog.hs, prog.o )

prog.hs:10:22: Not in scope: `map_'
stdout
Standard output is empty