
Hello. I have some confusing with PersistValue I have two variables UserProfileId {unUserProfileId = PersistText "1"} which obtained from* fromSinglePiece* come from HTML Form UserProfileId {unUserProfileId = PersistInt64 1}" is *Key UserProfile *came from Database Logically i expect that this values must be equal. But haskell says me not ) How to get equality ? Thanks. -- Best regards, Cheshkov Anton Phone: +7 909 005 18 82 Skype: cheshkov_anton

Upgrade persistent-template: fromSinglePiece "1" will now return PersistInt64 1.
Michael
On Sat, Apr 30, 2011 at 1:48 PM, Anton Cheshkov
Hello. I have some confusing with PersistValue I have two variables UserProfileId {unUserProfileId = PersistText "1"} which obtained from fromSinglePiece come from HTML Form UserProfileId {unUserProfileId = PersistInt64 1}" is Key UserProfile came from Database Logically i expect that this values must be equal. But haskell says me not ) How to get equality ? Thanks. -- Best regards, Cheshkov Anton Phone: +7 909 005 18 82 Skype: cheshkov_anton
participants (2)
-
Anton Cheshkov
-
Michael Snoyman