News aggregator

`zip` doesn't work with infinite `Seq`s

haskell-cafe - Tue, 10/07/2014 - 3:57am
Hello, We are writing a compiler[1] for a course and found that the `zip` function included in the `Data.Sequence` module, `zip :: Seq a -> Seq b -> Seq (a, b)` would hang on the following code: We checked the implementation[2] in the source of `Data.Sequence` and found the following: EmptyL -> error "zipWith': unexpected EmptyL" In the lazy reading of the documentation we did, we didn't find any warning of using infinite `Seq`s for zips. (Maybe there are warings that we didn't see). But looking at the code of `zip` in the `Prelude`: We see that we could just *pattern-match* both heads, instead of making assumptions. Maybe this should be better explained in the documentation[3] of `zip` for `Seq`s: Or just change the implementation for it to work with infinite `Seq`s. For those of you who are curious, we ended up using the following code to fix the *infinite `Seq`s problem*: [1] https://github.com/chamini2/sapphire [2] http://hackage.haskell.org/package/containers-0.5.5.1/docs/sr
Categories: Offsite Discussion

github.com

del.icio.us/haskell - Mon, 10/06/2014 - 6:00pm
Categories: Offsite Blogs

github.com

del.icio.us/haskell - Mon, 10/06/2014 - 6:00pm
Categories: Offsite Blogs

New Functional Programming Job Opportunities

haskell-cafe - Mon, 10/06/2014 - 5:00pm
Here are some functional programming job opportunities that were posted recently: Full Stack Functional Web Engineer at Front Row Education http://functionaljobs.com/jobs/8745-full-stack-functional-web-engineer-at-front-row-education Senior Software Engineer at McGraw-Hill Education http://functionaljobs.com/jobs/8744-senior-software-engineer-at-mcgraw-hill-education Cheers, Sean Murphy FunctionalJobs.com
Categories: Offsite Discussion

Applicative Functors

del.icio.us/haskell - Mon, 10/06/2014 - 12:47pm
Categories: Offsite Blogs

Ionut G. Stan's Blog

del.icio.us/haskell - Mon, 10/06/2014 - 2:26am
Categories: Offsite Blogs

Ionut G. Stan's Blog

del.icio.us/haskell - Mon, 10/06/2014 - 2:26am
Categories: Offsite Blogs

New gtk2hs 0.12.4 release

gtk2hs - Wed, 11/21/2012 - 12:56pm

Thanks to John Lato and Duncan Coutts for the latest bugfix release! The latest packages should be buildable on GHC 7.6, and the cairo package should behave a bit nicer in ghci on Windows. Thanks to all!

~d

Categories: Incoming News