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
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 getflip flip ".tar'" . ((flip . ((<>) .) . (<>)) .) . flip flip "/" . ((<>) .) . (<>) . (<> "/") . (("'../tars/" <> "/") <>)
which doesn't look greathttps://hackage.haskell.org/package/string-interpolate
this one's pretty nice
thanks
https://hackage.haskell.org/package/path
with this, you can also get typed paths
will have a look, thank you !