How do I correctly use toLower in Haskell?

Published: 4/10/2017
How do I correctly use toLower in Haskell?
Source: STACKOVERFLOW.COM

I've recently started to learn Haskell and wanted to convert something to lowercase. I looked up the function "toLower", but it doesn't seem to work. Prelude> import Data.Text Prelude Data.Text> toLower "JhELlo" <interactive>:2:9: error: * Couldn't match expected type `Text' with actual type `[Char]' * In the first argument of `toLower', namely `"JhELlo"' In the expression

Read more
Related news
Comment