import Data.Array (reverse)
import Data.List (reverse)
Compiler complains for Data.Array.reverse
[PureScript] Unknown value Data.Array.reverse
So how do I disambiguate?
import Data.Array (reverse)
import Data.List (reverse)
Compiler complains for Data.Array.reverse
[PureScript] Unknown value Data.Array.reverse
So how do I disambiguate?
import Data.Array as Array
import Data.List as List
and then use Array.reverse
or List.reverse
.
But
import Data.Array as Array (reverse)
itself now gives compiler error
[PureScript] Unable to parse module: unexpected ( expecting indentation at column 1 or end of input
Why do you need to do that though?
I think you can do
import Data.Array (reverse) as Array