Skip to content

Conversation

isovector
Copy link
Contributor

@isovector isovector commented Sep 23, 2021

This PR migrates the rest of Spar off depending directly on Casasndra.

To be rebased onto develop when #1792 lands.

Checklist

  • The PR Title explains the impact of the change.
  • The PR description provides context as to why the change should occur and what the code contributes to that effect. This could also be a link to a JIRA ticket or a Github issue, if there is one.
  • changelog.d contains the following bits of information:
    • A file with the changelog entry in one or more suitable sub-sections. The sub-sections are marked by directories inside changelog.d.

@isovector isovector requested a review from fisx September 23, 2021 17:00
Copy link
Contributor

@fisx fisx left a comment

Choose a reason for hiding this comment

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

Two small things:

  • Could you run make add-license (I keep forgetting this myself)
  • It would be nice to have explicit export lists in Spar.Sem.*. (Optional; we don't do this consisently, but I think at some point we agreed that we'd like to have that. If you don't do it I might make PR to resolve Spar.Data into Spar.Sem.*, and do it there. I'm hoping to find some dead code that way. :)

Sem r a
assIDStoreToCassandra =
interpret $ \case
Store itla t -> do
Copy link
Contributor

Choose a reason for hiding this comment

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

No need to fix this now, but in general this is about the scope size where I start to not like one-letter identifiers.

@@ -221,37 +225,39 @@ spec = do
idp2' <- runSpar $ liftSem (IdPEffect.getConfig (idp1 ^. idpId))
liftIO $ idp2' `shouldBe` Nothing

-- TODO(sandy): This function should be more polymorphic over it's polysemy
-- constraints than using 'RealInterpretation' in full anger.
Copy link
Contributor

Choose a reason for hiding this comment

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

not sure that would be an improvement? it's a local function, and the type is obviously flexible enough for it's use cases.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The point being that it doesn't need all of RealInterpreter, it really just needs a way to run its constraints in IO. Making this more polymorphic would mean we could use the same function to test pure interpreters too.

@fisx
Copy link
Contributor

fisx commented Sep 23, 2021

Random question: when I'm blocked in review, I usually base branches on top of each other, not all of them on develop. That way rebasing is usually trivial. Any reason why you don't do that?

@fisx
Copy link
Contributor

fisx commented Sep 23, 2021

Could you run make add-license (I keep forgetting this myself)

I just realized that we're not the only people not doing this. :') Never mind, I'll do it in a separate PR.

@isovector
Copy link
Contributor Author

Random question: when I'm blocked in review, I usually base branches on top of each other, not all of them on develop. That way rebasing is usually trivial. Any reason why you don't do that?

This branch is based on #1792 :)

@isovector
Copy link
Contributor Author

  • It would be nice to have explicit export lists in Spar.Sem.*

Mind if we do this in a separate PR?

Base automatically changed from misc-effects to develop September 23, 2021 21:07
@isovector isovector force-pushed the last-spar-effects branch 2 times, most recently from 63205c4 to 0a8714b Compare September 23, 2021 21:22
@fisx fisx merged commit 5426977 into develop Sep 24, 2021
@fisx fisx deleted the last-spar-effects branch September 24, 2021 06:58
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.

2 participants