« first day (1 day earlier)      last day (692 days later) » 

2:23 AM
0
Q: Least-strict (*)

singpolymaIs it possible to implement (*) with least-strict semantics in Haskell? For example: 0 * ⊥ = 0 ⊥ * 0 = 0 and only: ⊥ * ⊥ = ⊥ I can build pattern matches that satisfy one of the above cases, but not both, because the zero check forces the value.

 
2:39 AM
0
Q: Compiling SDL on OS X with Haskell fails

KataI can't get my SDL program to even build on OS X; I get this error: /Users/kata/code/mekhane/.hsenv/cabal/lib/SDL-0.6.4/ghc-7.4.1/HSSDL-0.6.4.o: unknown symbol `_SDL_HasSSE2' I've tried recompiling SDL from source, installing it from macports; nothing works.

 
 
3 hours later…
5:47 AM
1
Q: change (CurlCode, String) to String in Haskell

adeeshaekI am trying to create a simple haskell program which GETs a JSON string from a webserver and parses it. I am using the curlGetString method of Network.Curl. This method has the following type signature curlGetString :: URLString -> [CurlOption] -> IO (CurlCode, String) My question is:...

 
6:05 AM
0
Q: Does FreeT keep the equational reasoning benifits of Free?

Chris DueckIn this blog post , the author explains the equational reasoning benifits of purifying code with the Free monad. Does the Free monad transformer FreeT retain these benifits, even if its wrapped over IO?

 
6:21 AM
0
Q: How to replace a string with another in haskell

Vega512I want to replace a string from an input file with a different string. I was searching for a method but it seems i can only alter the string character by character. For example in the my code below replace :: String -> String replace [] = [] replace (x:xs) = if x == '@' then 'y':replace xs...

 
 
6 hours later…
12:11 PM
FredOverflow has stopped a feed from being posted into this room
 
@Zoidberg I removed it.
 
 
1 hour later…
1:30 PM
posted on February 16, 2013 by noreply

On Monday, 13 August 2012, while passing a bus on Princes Street my bike got caught in the tram line and I was thrown to the ground. A second bus was behind me, and stopped in time. Perhaps I am fortunate that the trams have been so delayed, for if it had been a tram behind me I doubt it could have come to a halt quickly enough to avoid running me over. In my case, I merely had to wait in

 
 
2 hours later…
3:27 PM
posted on February 16, 2013 by noreply

Back in 2011 I wrote about the reasons why I wasn't getting an e-book reader. I had found that books generally cost more in e-book format than in dead-tree format, and I was nervous about the digital restrictions management (DRM) that e-books came with. These concerns were only increased when I read about Linn Nygaard who had her Amazon account closed (and all her e-books effectively confiscate

 

« first day (1 day earlier)      last day (692 days later) »