b-studios / scala-effekt Goto Github PK
View Code? Open in Web Editor NEWExtensible algebraic effects with handlers
Home Page: http://b-studios.de/scala-effekt
License: MIT License
Extensible algebraic effects with handlers
Home Page: http://b-studios.de/scala-effekt
License: MIT License
I modified my build.sbt
according to the instruction and it looks like there is no library distribution for scala 2.13 in the repository.
[error] (core / ssExtractDependencies) sbt.librarymanagement.ResolveException: Error downloading de.b-studios:effekt_2.13:0.4-SNAPSHOT
[error] Not found
[error] Not found
[error] not found: /Users/sitiritis/.ivy2/localde.b-studios/effekt_2.13/0.4-SNAPSHOT/ivys/ivy.xml
[error] not found: https://repo1.maven.org/maven2/de/b-studios/effekt_2.13/0.4-SNAPSHOT/effekt_2.13-0.4-SNAPSHOT.pom
[error] not found: https://oss.sonatype.org/content/repositories/snapshots/de/b-studios/effekt_2.13/0.4-SNAPSHOT/effekt_2.13-0.4-SNAPSHOT.pom
Is there a way to fix this? I would be happy to get some help ๐
For some reason the link to Your first effect is dead. ๐ข
All other links seem to work though.
Is there a way to implement a handler similar to ambList
that returns a stream, lazily returning the results?
My naive attempt did not work, but will result in an infinite loop:
def ambStream[R](prog: Amb => Control[R]): Control[Stream[R]] =
new Handler[Stream[R]] with Amb {
def flip() = use { resume =>
for {
x <- resume(true)
y <- resume(false)
} yield x ++ y
}
} handle { amb => prog(amb).map(Stream(_)) }
def flip(implicit amb: Amb): Control[Boolean] = amb.flip()
def from(n: Int)(implicit amb: Amb): Control[Int] = for {
x <- flip
y <- if (x) pure(n) else from(n + 1)
} yield y
Hello,
libraryDependencies += "de.b-studios" %% "effekt" % "0.3-SNAPSHOT" does not work.
The modul wasn't found, so maybe the repo
https://repo1.maven.org/maven2/de/b-studios/scala-effekt_2.12/0.3-SNAPSHOT/scala-effekt_2.12-0.3-SNAPSHOT.pom
is down?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.