Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Type error fetching from database
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