Skip to content

Instantly share code, notes, and snippets.

@sidraval
Created February 19, 2015 19:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sidraval/b988364fcdf6cea4ef05 to your computer and use it in GitHub Desktop.
Save sidraval/b988364fcdf6cea4ef05 to your computer and use it in GitHub Desktop.
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