string interpolation - Haskell

Welcome to the Functional Programming Zulip Chat Archive. You can join the chat here.

Vincent L

Hi,
I have this call \a b c -> "'../tars/" <> "/" <> a <> "/" <> b <> "/" <> c <> ".tar'" which I use to build a relative path. Is there a more elegant way to do it ? Using pointfree.io I get flip flip ".tar'" . ((flip . ((<>) .) . (<>)) .) . flip flip "/" . ((<>) .) . (<>) . (<> "/") . (("'../tars/" <> "/") <>) which doesn't look great

Vincent L

will have a look, thank you !