Skip to content

Instantly share code, notes, and snippets.

@jjthrash
Created June 8, 2009 13:57
Show Gist options
  • Save jjthrash/125827 to your computer and use it in GitHub Desktop.
Save jjthrash/125827 to your computer and use it in GitHub Desktop.
-- given multi-line input where options are stated per line, spit out all possible options
import System.IO
main = do
input <- getContents
putStrLn $ show $ sequence $ map (words) $ lines input
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment