`String’ is applied to too many type arguments

String is a type, not a typeclass, so you can (must) just use it as-is in the type signature.

cutString :: Num n => n -> String -> String

Leave a Comment