Upon seeing a post earlier about text file indexing, i became curious as I'm currently learning to use Haskell (which isn't going well) as to if its possible to achieve the same goal easily in Haskell: How do I create a Java string from the contents of a file?
The objective of the class is to read a file, alphabetically order the words within the file and display the line numbers these words appear on.
Would the function in Haskell be able to be built in a similar approach to this?