Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add commonly used synonyms, pathName #15

Merged
merged 1 commit into from
Apr 21, 2016

Conversation

garyb
Copy link
Member

@garyb garyb commented Apr 21, 2016

@cryogenian can you take a look?

Figured we may as well add them here rather than reimplementing ourselves in multiple places.

@@ -199,6 +209,9 @@ module Data.Path.Pathy
(DirIn _ d) -> Just d
_ -> Nothing

pathName :: forall b s. AnyPath b s -> Either (Maybe DirName) FileName
pathName = bimap dirName fileName
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe this should just be name? Wasn't sure...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 for pathName

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 for pathName

@cryogenian
Copy link
Member

👍

@garyb garyb merged commit 7b2e5b2 into purescript-contrib:master Apr 21, 2016
@garyb garyb deleted the either-additions branch April 21, 2016 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants