Simplifying student list generation

using the [..] part of haskell