I'm trying to read in a string from a file, which works fine. But trying to replace punctuation marks with nothing to delete them, it gives me always the same message. My program part so far looks like this:
module HA
where
import FPH
import Data.List
let contents2 = replace "." "" sonnet18
let contents3 = replace "!" "" contents2
sonnet18 is a string in the file FPH.hs. I tried a couple ways to replace it, but get always the exception "parse error (possibly incorrect indentation or mismatched brackets) It doesn't say much and looking it up, didn't help yet. All indentations are four whitespaces and so on. I can't find the mistake. I'm grateful for any help.
replaceto exist?replace(inData.List.Utils), notData.List.Split.