What does this symbol </>
means in Haskell?
What is it called?
How to use it?
I use ghc 7.8 to compile the application.
What does this symbol </>
means in Haskell?
What is it called?
How to use it?
I use ghc 7.8 to compile the application.
It's an alias for combine.
Combine two paths, if the second path isAbsolute, then it returns the second.
Valid x => combine (takeDirectory x) (takeFileName x) `equalFilePath` x
Posix: combine "/" "test" == "/test"
Posix: combine "home" "bob" == "home/bob"
Windows: combine "home" "bob" == "home\\bob"
Windows: combine "home" "/bob" == "/bob"