« first day (140 days earlier)      last day (656 days later) » 

BMO
12:39 PM
@Potato44: I see
I never used TypeApplications but that Data.Modular stuff is pretty darn awesome ^^
 
1:00 PM
I just wrote an answer to the random snake challenge and I get an Ambiguous type variable error when running on TIO, while it runs just fine in GHCi. Has anyone an idea why?
 
BMO
1:17 PM
@Laikoni: You would need to write randomRIO(-1,1::Int) or enable the flag ExtendedDefaultRules (which GHCi does by default)
(2.4.8)
GHCi is not quite the same as the usual Haskell, this caught me several times.. Maybe you'd get away with using runhaskell?
That differs as well and seems closer to GHCi
Nope doesn't work: Try it online!
 
@BMO I didn't know about ExtendedDefaultRules, thanks for pointing out.
 
BMO
I got to know it with that flag question :D
But I had to google it again, there are soo many flags ^^
 
@BMO I actually just looked up the question to see whether it is included. :D
 
BMO
It's not or is it?
 
@BMO How does runhaskell differ from GHC? It appears to be just an alias for runghc, which again should only mitigate the compile step.
 
BMO
1:28 PM
I <s>wasted</s> spent quite a lot of time on that question.. There would be a few other flags where the usual catching errors and doing something would work but I felt that it wasn't getting much more interesting.
 
@BMO No, and your link to the documentation even contains an example which solves the challenge, as far as I see.
 
BMO
Tbh, I only know of the way buffering is done. Not exactly sure but I think that it does turn of buffering like GHCi does as well.
 
@BMO ---strikeout--- for strikeout
 
BMO
Hah, didn't know that!
I used that buffering weirdness before in this answer
 

« first day (140 days earlier)      last day (656 days later) »