Skip to content

Commit

Permalink
Support opaleye-0.9 (#158)
Browse files Browse the repository at this point in the history
This brings rel8 up to date with `opaleye-0.9`.
  • Loading branch information
tomjaguarpaw committed Jan 31, 2022
1 parent e32274c commit 6d0dae4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rel8.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ library
, comonad
, contravariant
, hasql ^>= 1.4.5.1 || ^>= 1.5.0.0
, opaleye ^>= 0.8.0.0
, opaleye ^>= 0.9.0.0
, pretty
, profunctors
, product-profunctors
Expand Down
4 changes: 2 additions & 2 deletions src/Rel8/Expr/Opaleye.hs
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ traversePrimExpr :: Functor f
traversePrimExpr f = fmap fromPrimExpr . f . toPrimExpr


toColumn :: Opaleye.PrimExpr -> Opaleye.Column b
toColumn :: Opaleye.PrimExpr -> Opaleye.Field_ n b
toColumn = Opaleye.Column


fromColumn :: Opaleye.Column b -> Opaleye.PrimExpr
fromColumn :: Opaleye.Field_ n b -> Opaleye.PrimExpr
fromColumn (Opaleye.Column a) = a

0 comments on commit 6d0dae4

Please sign in to comment.