4 ms·
I have recently implemented a basic GIF parser and writer in Haskell for a school project. The code can be found here: https://bitbucket.org/nudded/gif-parser/s
by nudded 15y ago
I have recently implemented a basic GIF parser and writer in Haskell for a school project. The code can be found here: https://bitbucket.org/nudded/gif-parser/src/ https://bitbucket.org/nudded/gif-parser/src/
I think it shows how easy it is to write parsers in Haskell. Don't bother to look at the LZW decode and encode, it's rather dirty.
- thesz 15y agoQuite clear LZW: http://rosettacode.org/wiki/LZW_compression#Haskell http://rosettacode.org/wiki/LZW_compression#Haskell Perhaps not compatible with GIF standard, but very clear.