al = ['a'..'z'] foo n = length $ iterate (\l -> l >>= \x -> map (:x) al) [[]] !! n main = print $ foo 6
Standard input is empty
308915776
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!