diff options
Diffstat (limited to 'src/Codec/Wavefront/Token.hs')
-rw-r--r-- | src/Codec/Wavefront/Token.hs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Codec/Wavefront/Token.hs b/src/Codec/Wavefront/Token.hs index 01acd5c..70b3437 100644 --- a/src/Codec/Wavefront/Token.hs +++ b/src/Codec/Wavefront/Token.hs | |||
@@ -169,13 +169,13 @@ face = do | |||
169 | where | 169 | where |
170 | parseFaceIndices = fmap (\(i,k,j) -> FaceIndex i k j) parseFaceTriple `sepBy1` skipHSpace | 170 | parseFaceIndices = fmap (\(i,k,j) -> FaceIndex i k j) parseFaceTriple `sepBy1` skipHSpace |
171 | parseFaceTriple = do | 171 | parseFaceTriple = do |
172 | v <- decimal | 172 | v <- signed decimal |
173 | slashThenElse (parseVT v) (pure (v,Nothing,Nothing)) | 173 | slashThenElse (parseVT v) (pure (v,Nothing,Nothing)) |
174 | parseVT v = slashThenElse (parseVN v Nothing) $ do | 174 | parseVT v = slashThenElse (parseVN v Nothing) $ do |
175 | vt <- decimal | 175 | vt <- signed decimal |
176 | slashThenElse (parseVN v $ Just vt) (pure (v,Just vt,Nothing)) | 176 | slashThenElse (parseVN v $ Just vt) (pure (v,Just vt,Nothing)) |
177 | parseVN v vt = do | 177 | parseVN v vt = do |
178 | vn <- decimal | 178 | vn <- signed decimal |
179 | pure (v,vt,Just vn) | 179 | pure (v,vt,Just vn) |
180 | 180 | ||
181 | ---------------------------------------------------------------------------------------------------- | 181 | ---------------------------------------------------------------------------------------------------- |