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

Better type for things like lookupYL #2

Open
gitfoxi opened this issue Oct 6, 2014 · 0 comments
Open

Better type for things like lookupYL #2

gitfoxi opened this issue Oct 6, 2014 · 0 comments

Comments

@gitfoxi
Copy link

gitfoxi commented Oct 6, 2014

I notice that I keep making the mistake with lookupYL of flipping the key and the data structure because they both have the same type YamlLight I end up wrapping it in a function like lookupStr YamlLight -> ByteString -> Maybe ByteString. This seems like a good way to go since the keys are always strings (I think).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant