Created
June 29, 2017 13:54
-
-
Save jamiecook/a6385ef4e607433602dad55e6caf7263 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
readHex :: BC.ByteString -> Some Geometry | |
readHex bs = runGeos $ do | |
r <- S.createReader | |
g <- S.readHex r bs | |
convertGeometryFromRaw g | |
readLotsOfHex :: [BC.ByteString] -> [Some Geometry] | |
readLotsOfHex bs = runGeos $ do | |
r <- S.createReader | |
x <- mapM (S.readHex r) bs | |
return x | |
/Users/jamie/src/geos/src/Data/Geometry/Geos/Serialize.hs:25:20: error: | |
• Couldn't match type ‘R.Geom’ with ‘Some Geometry’ | |
Expected type: [Some Geometry] | |
Actual type: [R.Geom] | |
• In the expression: | |
runGeos | |
$ do { r <- S.createReader; | |
x <- mapM (S.readHex r) bs; | |
return x } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment