Module A import Data.Char
Module B imports Module A
So Module B automatically imports Data.Char ?
If not do I need to explicitly import Data.Char in Module A?
In my program, the Module B can not access the types from Data.Char
You can export Data.Char
from module A
.
module A (
-- ... other functions
module Data.Char
-- ... other functions
) where
import Data.Char
Now when you import A
, Data.Char
will be available.
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