purescript-contrib / purescript-pathy

A type-safe abstraction for platform-independent file system paths.
Apache License 2.0
33 stars 17 forks source link

Add foldNames function #12

Closed chrisdotcode closed 6 years ago

chrisdotcode commented 8 years ago

Oh my. Forgot to update doc when renaming the function. I'll fix that.

chrisdotcode commented 8 years ago

Finished. Ready for merging, @garyb , @jdegoes .

jdegoes commented 8 years ago

@chrisdotcode Looks good, can you resolve conflicts?

chrisdotcode commented 8 years ago

Will do.

cryogenian commented 7 years ago

I don't quite get the purpose of this fold-func. The same result can be achieved using following

peel <<< (maybe defaultValue (either (runDirName >>> handleDirName) (runFileName >>> handleFileName)))
safareli commented 6 years ago

Closing this pr as in #33 structure of Pathy was simplified and similar fold function was added. @chrisdotcode thanks for the work anyways!