Skip to content

Commit

Permalink
Merge pull request #11 from scrive/master
Browse files Browse the repository at this point in the history
Convertible from SqlValue to SqlValue
  • Loading branch information
zenzike committed Dec 1, 2011
2 parents d2c5d08 + 2e3cbd0 commit 68f1d34
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Database/HDBC/SqlValue.hs
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,9 @@ instance Eq SqlValue where
a == b = ((safeFromSql a)::ConvertResult String) ==
((safeFromSql b)::ConvertResult String)

instance Convertible SqlValue SqlValue where
safeConvert = return

instance Convertible String SqlValue where
safeConvert = return . SqlString
instance Convertible SqlValue String where
Expand Down

0 comments on commit 68f1d34

Please sign in to comment.