Skip to content

Instantly share code, notes, and snippets.

@Mongey
Created January 13, 2012 04:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Mongey/1604724 to your computer and use it in GitHub Desktop.
Save Mongey/1604724 to your computer and use it in GitHub Desktop.
promptList (x:[]) partial = do
putStrLn ("Enter value for " ++ x)
input<-getLine
(partial ++ [input])
promptList (x:xs) partial = do
putStrLn ("Enter value for " ++ x)
input<-getLine
promptList xs (partial ++ [input])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment