I am having trouble writing a function with type
Int -> IO [Int] or Int -> [IO Int]
I have the following code that is not working:
createEIList :: Int -> IO [Int]
createEIList len = do
cur <- createEI
(return cur):(createEIList (len-1))
Where createEI is createEI :: IO Int
What is the best way to do something like this?