last day (694 days later) » 

user142019
11:29 AM
room topic changed to Haskell: Old room was dead and probably orphaned. [functional-programming] [haskell]
 
Zoidberg has made a change to the feeds posted into this room
Zoidberg has made a change to the feeds posted into this room
 
user142019
room topic changed to Haskell: The sexiest language ever! [functional-programming] [haskell]
 
user142019
room topic changed to chatRoom :: Haskell: The sexiest language ever! [functional-programming] [haskell]
 
user142019
1 message moved to recycle bin
 
user142019
11:36 AM
Don't let it die this time. I'm counting on you, Haskell community.
 
user142019
15 messages moved to Trash can
 
12:41 PM
room topic changed to chatRoom :: Haskell: concatMap = ((.).(.)) concat map [functional-programming] [haskell] [monads]
 
posted on February 14, 2013

I've been contemplating, coding, discussing, and writing (unpublished) blog posts about the next version of conduit- off and on- for a few months now. I'm going to try to get all of the important points for discussion in this blog post, starting with the most important (and hopefully interesting) for users and digressing further into background information. Bad error message examples I was plan

0
Q: Combining proxies with different `EitherT` in base monad

Danny NavarroFor example, having... consumer :: Proxy p => () -> Consumer p a (EitherT String IO) () producer :: Proxy p => () -> Producer p a (EitherT ByteString IO) r ... how do I make this work? session :: EitherT ByteString (EitherT String IO) () session = runProxy $ producer >-> con...

 
user142019
1:12 PM
why is the tag plural on Stack Overflow. xD
 
3:07 PM
0
Q: Haskell type error message

webdosFor the past couple of days I've been trying to learn Haskell. While I'm slowly getting better but I'm finding it hard to reason with Haskell's IO, probably due to my lack of knowledge. I've been trying to write a simple todo list program. Here's what I've got: tadd todo = do td <- getLine td...

 
3:37 PM
@Zoidberg Because they are so powerful, you tend to use many of them? ;)
 
4:01 PM
1
Q: Defining a function in two different modules, or a workaround

Carlos López-CameyI've a function evalExpression :: Exp -> Value in a module A that depends heavily on pattern matching over the argument Exp. The file has become large enough to desire more organization. I'd like to split the module A into modules A.GHC.Num, A.GHC.Types, etc. Is there a way to inline a modu...

 
4:34 PM
1
Q: Pattern matching error on instance declaration

KalistoI need to declare a Monad instance for an specific data type: data M m a = Mk (m (Maybe a)) instance (Monad m) => Monad (M m) where return x = Mk (m (Just x)) Mk (m (Nothing)) >>= f = Mk (m (Nothing)) Mk (m (Just x)) >>= f = f x But I get: test.hs:6:7: Parse error in pat...

 
4:52 PM
0
Q: In Haskell, what does the map function mean when you only pass it a list?

ImrayIn a Haskell project I'm given to debug, there are instances in the code where map is used with only one parameter - a list - is passed. For example printReports :: [Report] -> IO () printReports = putStrLn . unlines . map show and printRuns' :: [Run] -> IO () printRuns' = putStrLn . ...

 
5:25 PM
1
Q: How can I replace a substring of a string with another in Haskell without using external Libraries like MissingH?

nils8950I would like to replace a substring with a string in haskell, without using external libraries, and, if it is possible, with good performance. I thought about using the Data.Text replace functions, but I don't want to port my entire program to use the Text type instead of Strings. Would packing t...

 
 
4 hours later…
9:44 PM
0
Q: Linking separate projects in GHC

SavuiOk this should be simple, but can't seem to figure this out. I have two projects, ProjectA and ProjectB. ProjectB depends on the old project, ProjectA. Now I want to build ProjectB. And I do not want to change the directory structure for ProjectA now. Problem is, I always used -outputdir bin with...

 
 
2 hours later…
11:27 PM
2
Q: Switching workspaces in xmonad using programmer dvorak keyboard layout (shifted numbers)

erikWell, I am not using Dvorak actually but Neo2, but as I am using a matrix type keyboard (Truly Ergonomic) I have also shifted the numbers. Therefore this construction in my xmonad.hs does not work ergonomically: -- mod-[1..9], Switch to workspace N -- mod-shift-[1..9], Move client to workspace ...

 

  last day (694 days later) »