asilvestre / haskell-neo4j-rest-client

Haskell neo4j REST client
MIT License
25 stars 7 forks source link

Expose getNodeBatchId / getRelBatchId / getEntityBatchId #30

Open mgsloan opened 7 years ago

mgsloan commented 7 years ago

Currently these methods are emtpy. In particular, I want to write:

instance (NodeBatchIdentifier l, NodeBatchIdentifier r) =>
         NodeBatchIdentifier (Either l r) where
    getNodeBatchId = either getNodeBatchId getNodeBatchId

For now I have rather inconvenient duplication of code to handle the two cases.