Created
February 19, 2015 19:36
-
-
Save sidraval/b988364fcdf6cea4ef05 to your computer and use it in GitHub Desktop.
Type error fetching from database
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data EventWithDistance = EventWithDistance | |
{ eventWithDistanceId :: Int | |
, eventWithDistanceEndedAt :: LocalTime | |
, eventWithDistanceName :: T.Text | |
, eventWithDistanceStartedAt :: LocalTime | |
, eventWithDistanceUserId :: Int | |
, eventWithDistanceAddress :: T.Text | |
, eventWithDistanceLat :: Float | |
, eventWithDistanceLon :: Float | |
, eventWithDistanceDistance :: Float | |
} | |
-- A web handler threw an exception. Details: | |
-- Incompatible {errSQLType = "float8", errSQLTableOid = Just (Oid 16451), errSQLField = "lat", errHaskellType = "Float", errMessage = "types incompatible"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment