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

Include a Writer capability in Behavior and rename to ZBehavior #86

Open
DamianAtWork opened this issue Feb 2, 2021 · 0 comments
Open

Comments

@DamianAtWork
Copy link

We would like to support the ability to log an entry of type W as an effect within our behavior.
This would change the base effect type used by flowz to a ZBehavior.

We should then have the following:

abstract class ZBehavior[+W, -SIn, +SOut, -Msg, -R, +E, +A] { self =>
}

type Behavior[-SIn, +SOut, -Msg, -R, +E, +A] = ZBehavior[Nothing, SIn, SOut, Msg, R, E, A]

The behavior will be able to log using the following:

object ZBehavior {
   def log[S, LogEntry](logEntry:LogEntry):ZBehavior[LogEntry,S,S,Any,Any,Nothing,Unit] = ???
}

object Behavior {
   def log[S, LogEntry](logEntry:LogEntry):ZBehavior[LogEntry,S,S,Any,Any,Nothing,Unit] = ???
}
DamianReeves added a commit that referenced this issue May 25, 2022
* Working on ValueSyntax and ValueModule

* Working towards a beter value syntax (incomplete)

* More cleanup of Value, ValueSyntax, and ValueModuleSpec

* More cleanup of Value, ValueSyntax, and ValueModuleSpec

* More cleanup of Value, ValueSyntax, and ValueModuleSpec

* Fix Basics.scala

* Add more Raw and Typed instances

* Got the ir project compiling

* Fixing broken tests

* Formatting fixes

* Fix build issues

* Removing ValueModule

* Fix IR SDK

* Creating module package

* Module related refactorings

* Package related refactorings

* Refactoring

* More refactoring

* Fix CaseExample compilation

* Fix error in Apply constructor which caused StackOverflow

* Ignore unimplemented fuctionality

* Comment out json related encoders and decoders and tests for now

* Commenting out interpreter for now

* Can't shake these warnings not sure why

* Remove -Ywarn-value-discard and --no-indent

* Add back the warning

* Suppress warnings at the expression level
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

No branches or pull requests

1 participant