-
Notifications
You must be signed in to change notification settings - Fork 359
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
Run tut in Travis builds (fix #362) #363
Conversation
Confirmed that |
Cool thanks for looking into this. |
@@ -22,7 +24,7 @@ object catchablespec extends Specification { | |||
} | |||
|
|||
"work on unaliased IConnection" in { | |||
42.pure[ConnectionIO].map(_ + 1).attempt | |||
(42.pure[ConnectionIO].map(_ + 1): ConnectionIO[Int]).attempt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Additional indirection confuses type inference here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's leave this test as-is and yax it out for cats, then open a separate issue to sort this out. I know Adelbert is pretty focused on it so maybe he'll have some ideas.
@@ -120,7 +120,7 @@ program3a.replicateM(5).transact(xa).unsafePerformIO.foreach(println) | |||
#-scalaz | |||
#+cats | |||
```tut | |||
program3a.replicateA(5).transact(xa).unsafePerformIO.foreach(println) | |||
ApplicativeError[ConnectionIO, Throwable].replicateA(5, program3a).transact(xa).unsafePerformIO.foreach(println) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And here.
Tried removing cats-only The problem is that the type cannot be inferred in some situation due to the additional implicit search step(s) as UPDATE: Not only |
Yeah I ran into this and didn't try to track it down. I won't have time to look at this until the weekend but I'll have a couple weeks with a lot of free time because I'll be in Chile by myself with nothing better to do. In any case thanks for your help with this. |
Seems related to typelevel/cats#1210 |
And this scala/scala#5106 |
@@ -120,7 +120,7 @@ program3a.replicateM(5).transact(xa).unsafePerformIO.foreach(println) | |||
#-scalaz | |||
#+cats | |||
```tut | |||
program3a.replicateA(5).transact(xa).unsafePerformIO.foreach(println) | |||
Applicative[ConnectionIO].replicateA(5, program3a).transact(xa).unsafePerformIO.foreach(println) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Urgh.
If you don't mind making that one change in the tests I think this is ok to merge. Opened #369 to track the underlying issue. |
Old postgis driver (1.3.3) is compiled against postgres driver 8.3 and pulls it as a transitive dependency. Bumped it to the latest version. |
#+cats | ||
// TODO Remove yax (https://github.com/tpolecat/doobie/issues/369) | ||
(42.pure[ConnectionIO].map(_ + 1): ConnectionIO[Int]).attempt | ||
#-cats |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Forgot to ping @tpolecat, is this what you mean?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, perfect. Thanks!
It seems that the first
exec
replaces the shell and swallows the following ones. [1] This PR just merges all sbt commands into a single run.[1] http://stackoverflow.com/a/7194536