mdmoss / doobie-codegen

Generate Doobie database code from sql statements.
MIT License
10 stars 7 forks source link

Handle both scala and scalaz either #48

Closed kennyboy closed 7 years ago

kennyboy commented 7 years ago

Previously:

[error] xxx.scala: missing argument list for method error in package sys
[error] Unapplied methods are only converted to functions when a function type is expected.
[error] You can make this conversion explicit by writing `error _` or `error(_)` instead of `error`.
[error]     a => Parse.parse(a.getValue).leftMap[Json](sys.error).merge, // failure raises an exception