Constellation-Labs / tessellation

Monadic execution contexts for topology organization
Apache License 2.0
49 stars 28 forks source link

Fix IntelliJ compile errors #806

Closed sdavidp closed 9 months ago

sdavidp commented 10 months ago

This PR fixes a problem for IntelliJ users; there are no functionality changes.

For some reason I haven't been able to solve, the IDE sees usages of .toBinaryF and .hashF as errors; this is because for some reason it doesn't see MonadThrow. (In the kryo module it doesn't see identity either.) However, if we use both MonadThrow and ApplicativeThrow then they're seen. Alternatively, importing _root_.cats._ fixes the problem so that I didn't have to change the code.

sbt has no problem with them but there's something about these modules that IntelliJ can't solve which causes problems during development. If anyone knows how to adjust IntelliJ w/o these changes I'd be happy to withdraw this PR.