Re: [Haskell-cafe] mapFst and mapSnd

2013-05-31 Thread Tony Morris
class BinaryFunctor f where bimap :: (a - c) - (b - d) - f a b - f c d mapFst = (`bimap id`) mapSnd = bimap id On 31/05/2013 12:16 PM, Shachaf Ben-Kiki shac...@gmail.com wrote: On Thu, May 30, 2013 at 7:12 PM, Shachaf Ben-Kiki shac...@gmail.com wrote: One generalization of them is to

Re: [Haskell-cafe] Projects using Shake

2013-05-31 Thread Stefan Kersten
hi frerich, On May 31, 2013, at 2:17 AM, Frerich Raabe wrote: Is anybody aware of open source projects which I could look at, or is there maybe a conventional file extension for… what do you call them, Shakefiles? other than .hs which I could google for? we are using a shake-based build

[Haskell-cafe] Call for Papers IFL 2013

2013-05-31 Thread publicityifl
=== VACANCY : 1x Phd Student in domain specific type error diagnosis for Haskell === The activities of the Software Systems division at Utrecht

Re: [Haskell-cafe] Call for Papers IFL 2013

2013-05-31 Thread Clark Gaebel
Well that's exciting! I really hope uu finds a student. This would be yet another one of Haskell's killer features. - Clark On Friday, May 31, 2013, wrote: === VACANCY : 1x Phd Student in domain specific type error

[Haskell-cafe] question about singletons

2013-05-31 Thread TP
Hi all, Following a discussion on Haskell Cafe some time ago (1), Roman C. wrote: On the other hand, the type 'Succ 'Zero has kind 'Nat and doesn't have any inhabitants — only types of kind * do. Indeed, this is what seems to occur in the following example: --- {-#

Re: [Haskell-cafe] Two GHC-related GSoC Proposals

2013-05-31 Thread Thomas Schilling
[I'll be the mentor for this GSoC project.] I used the MVar approach a while ago and so did Simon Marlow's original solution. Using MVars and Threads for this should scale well enough (1000s of modules) and be relatively straightforward. Error/exception handling could be a bit tricky, but you

[Haskell-cafe] Performance difference between Linux and Windows?

2013-05-31 Thread James Jones
I've been having a great deal of fun writing a program to solve this year's Code Jam Fair and Squareproblem in Haskell (and learning about Haskell in the process). Having gotten it to work, I've been optimizing it as best I can. I'm not quite in Captain Ahab mode, but before I let it go I would

[Haskell-cafe] Job opening Ph D student in type error diagnosis for domain specific languages in Haskell

2013-05-31 Thread Jurriaan Hage
Dear Haskellers, Apologies in case you have received multiple copies. best, Jur === VACANCY : 1x Phd Student in domain specific type error diagnosis for Haskell

Re: [Haskell-cafe] question about singletons

2013-05-31 Thread Richard Eisenberg
Hi TP, You bring up a few interesting points in your email. (A note to those who have visited this playground before: to keep things sane, let's just pretend that the kind # doesn't exist. Of course, if you don't know about kind #, then you're a step ahead of the rest of us! While you're at it,

Re: [Haskell-cafe] Performance difference between Linux and Windows?

2013-05-31 Thread Krzysztof Skrzętnicki
The difference is roughly 2x, which suggests difference in Int/pointer sizes: 32bit vs 64bit. Indeed, only since 7.6.1. GHC supports compiling 64 bit executables on Windows ( http://hackage.haskell.org/trac/ghc/wiki/WindowsGhc). That means that in fact you compare 32 bit vs 64 bit programs. I

[Haskell-cafe] lifted-base linking failure with GHC HEAD

2013-05-31 Thread Mateusz Kowalczyk
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Greetings, I'm attempting to build lifted-base (as a dependency for ghc-mod) but cabal-install fails every time during the linking phase. I pasted the full log of `cabal install lifted-base --verbose' to hpaste at [1]. I'm attempting to build it with

Re: [Haskell-cafe] mapFst and mapSnd

2013-05-31 Thread Alexander Solla
On Thu, May 30, 2013 at 10:56 PM, Tony Morris tmor...@tmorris.net wrote: class BinaryFunctor f where bimap :: (a - c) - (b - d) - f a b - f c d mapFst = (`bimap id`) mapSnd = bimap id There's a bifunctors package with: class Bifunctor f where bimap :: ... first :: a - b - f a c

[Haskell-cafe] Simplest way to learn FRP through use

2013-05-31 Thread Christopher Howard
I want to learn FRP but am having trouble wading through all the theory about how FRP is implemented and how it /could/ be used for various applications. What is the simplest, easiest-to-learn module or system allowing you to quickly make something interesting (if not very impressive) in an FRP

Re: [Haskell-cafe] Simplest way to learn FRP through use

2013-05-31 Thread Tikhon Jelvis
My favorite mini app is John Conway's game of life. I implemented a version with reactive banana and found it perfect for learning the ideas. I have a simple version of the code up on GitHub if you ever want a nice example to read. I tried to make the code neat rather than worrying about

Re: [Haskell-cafe] Simplest way to learn FRP through use

2013-05-31 Thread Tommy Thorn
Unless I am missing something, The Haskell School of Expression has an excellent introduction to it. Tommy On May 31, 2013, at 20:41 , Christopher Howard christopher.how...@frigidcode.com wrote: I want to learn FRP but am having trouble wading through all the theory about how FRP is