3 ms·
It is daunting and those errors are very hard to follow even after you have some experience with them. That said, there's a component of "you are using it wron
by marcosdumay 9y ago
It is daunting and those errors are very hard to follow even after you have some experience with them.
That said, there's a component of "you are using it wrong" on your problem. On the middle of some code, when your data is already in well typed variables, you just write:
if text =~ "(a|b).*" then trueVal else falseVal
and it just works. It doesn't even matter if text is a String, Text, ByteString, or whatever. Also you just write:
putStr . concat $ text =~ "(a|b).*
and again, it just works. It does not matter that this is a completely different usage.