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

Issue 649 d #658

Merged
merged 2 commits into from Apr 24, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 7 additions & 0 deletions .gitignore
Expand Up @@ -14,3 +14,10 @@ target/
project/project/
benchData/
_site/

## Metals files to ignore
.metals/
.bloop/

## CTags files to ignore
.ctags
4 changes: 2 additions & 2 deletions core/shared/src/main/scala/monocle/function/Cons.scala
Expand Up @@ -68,7 +68,7 @@ object Cons extends ConsFunctions {
implicit val stringCons: Cons[String, Char] = Cons(
Prism[String, (Char, String)](s =>
if(s.isEmpty) None else Some((s.head, s.tail))
){ case (h, t) => h + t }
){ case (h, t) => s"$h$t" }
)

implicit def vectorCons[A]: Cons[Vector[A], A] = Cons(
Expand All @@ -90,4 +90,4 @@ object Cons extends ConsFunctions {
case ICons(x, xs) => Some((x, xs))
}{ case (a, s) => ICons(a, s) }
)
}
}
@@ -1,6 +1,5 @@
package monocle.generic

import language.higherKinds
import monocle.PTraversal
import monocle.function.Each
import monocle.{ Iso, Traversal }
Expand Down