String Concatenation in Purescript

Playing with purescript and running into an odd string concatenation problem. I downloaded and imported Prelude , Data.List , Data.Maybe and Data.String (also tried to import Data.Array ), but PSCi still does not recognize (++) . This suggests that either (++) not contained in any of my imported modules (in this case, a pointer to the corresponding module (s) to import would be evaluated) or there was some strange problem when I installed purescript and installed mine environment. I think the latter is unlikely, but hey, I will keep my thoughts open.

Thanks in advance!

+8
string import module functional-programming purescript
source share
1 answer

Newer versions of PureScript (from 0.9, I think) have abandoned ++ in favor of <> . This statement should work out of the box since it is contained in the purescript-prelude .

Thanks @gb. to be sure. Edited the wrong part of my answer.

+13
source share

All Articles