Skip to content

Instantly share code, notes, and snippets.

@robhinds
Created January 23, 2019 20:42
Show Gist options
  • Save robhinds/14983631cbb5d3d80132a9a622c71edb to your computer and use it in GitHub Desktop.
Save robhinds/14983631cbb5d3d80132a9a622c71edb to your computer and use it in GitHub Desktop.
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