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

FreeT as stack-safe Kleisli #1764

Closed
wants to merge 1 commit into from

Conversation

edmundnoble
Copy link
Contributor

Part of a tentative solution to #1733. If this is merged another issue should be created for the hand-inlined version of this, if we end up wanting it.

@codecov-io
Copy link

codecov-io commented Jul 9, 2017

Codecov Report

Merging #1764 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1764   +/-   ##
=======================================
  Coverage   94.17%   94.17%           
=======================================
  Files         256      256           
  Lines        4208     4208           
  Branches       93       89    -4     
=======================================
  Hits         3963     3963           
  Misses        245      245

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cb84fd4...9463672. Read the comment docs.

@@ -4,4 +4,6 @@ package object free {
/** Alias for the free monad over the `Function0` functor. */
type Trampoline[A] = Free[Function0, A]
object Trampoline extends TrampolineFunctions
type StacksafeKleisli[F[_], A, B] = FreeT[A => ?, F, B]
Copy link
Contributor

Choose a reason for hiding this comment

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

The "S" in "Safe" is already capitalized in StackSafeMonad, so it should probably be capitalized here for consistency.

@edmundnoble
Copy link
Contributor Author

@johnynek Has a better solution in Free[Kleisli[F, E, ?], A].

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.

3 participants