This seems as simple as possible:
import Data.Text as T
let x = "test"
T.putStrLn x
But I get:
<interactive>:1:1: error:
Not in scope: ‘T.putStrLn’
No module named ‘T’ is imported.
Why is T not imported? Why is Data.Text
not imported as T?
putStrLn
is not provided by Data.Text
, but Data.Text.IO
.
The error message is actually confusing.
I'll check if the problem is reported.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With