Created
January 23, 2019 20:42
-
-
Save robhinds/14983631cbb5d3d80132a9a622c71edb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type IndexDSL[A] = Free[IndexAlg, A] | |
def createIndex(name: String): IndexDSL[Either[String, CreateIndexResponse]] = Free.liftF(CreateIndex(name)) | |
def deleteIndex(name: String): IndexDSL[Either[String, DeleteIndexResponse]] = Free.liftF(DeleteIndex(name)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment