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

Make HLists covariant in their type parameters. #1663

Merged
merged 1 commit into from
Jan 14, 2015

Conversation

Shadowfiend
Copy link
Member

Also add a spec for HList length.

I'm using this code in lift-formality and it works as advertised, but it's nicer if
I don't keep my own copy of it ;)

Also add a spec for HList length.
@@ -116,7 +96,7 @@ object HLists {
* Carries the information about the type of this element, plus the `HList`
* type of the rest of the list.
*
* You can use `:+:` to make this `HList` longer:
* You can use `[[HListMethods.:+: :+:]]` to make this `HList` longer:
*
* {{{
Copy link
Member

Choose a reason for hiding this comment

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

would you want to update the scaladoc style while you are here or are you planning on doing another massive pass at docs on a separate PR?

Copy link
Member Author

Choose a reason for hiding this comment

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

I actually waited until the other docs PR for lift-common went in, so these docs should all be up-to-date, I think. Did you see an issue? I kind of had to move the tweaks I'd made for lift-formality into the already-properly-doced file, so it's possible I missed something.

@fmpwizard
Copy link
Member

👍

@Shadowfiend
Copy link
Member Author

I'm not sure how much HLists are being used in general, but given one thumbs up I'll probably merge this tomorrow unless someone else protests vehemently :p

@Shadowfiend Shadowfiend added this to the 3.0-M3 milestone Jan 8, 2015
@Shadowfiend
Copy link
Member Author

I'm not sure when “tomorrow” turned into “in 6 days”, but in we go :p

Shadowfiend added a commit that referenced this pull request Jan 14, 2015
Make HLists covariant in their type parameters.

Also add a spec for HList length.

I'm using this code in lift-formality and it works as advertised!
@Shadowfiend Shadowfiend merged commit 989aa6f into master Jan 14, 2015
@Shadowfiend Shadowfiend deleted the hlist-improvements branch January 14, 2015 03:32
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

Successfully merging this pull request may close these issues.

2 participants