I'm trying to split a list in Haskell. As to my knowledge, the easiest way to do this is with splitOn, but this function requires Data.List.Split, so I tried to run import Data.List.Split in Prelude. However, I got the following error:
Could not find module Data.List.Split
Simply importing Data.List does work, however.
What could I do to solve this? Or, even better: is there an easy, built-in alternative to split lists?
Stringyou want to split on'\n'or\s+?Stringon whitespaces.baseonly...