Category "ghci"

Making substring conditions

I'm trying to implement a subString function which has a conditional part: "This function can accept negative start and end position. Negative start position ca

Defining new types in Haskell

I am pretty new to Haskell, and I was wondering if one can define new types that are defined by lists of other types. For example, I assume a string is defined