Search Haskell Channel Logs

Friday, March 3, 2017

#haskell channel featuring Sornaensis, lambdabot, fendor, ongy, liste, kuribas, and 7 others.

liste 2017-03-03 05:45:22
meijiJAPAN: the libraries, programming techniques and ecosystem are different
fendor 2017-03-03 05:45:26
does someone know a good template haskell tutorial?
nbro 2017-03-03 05:46:41
joke: I think Haskell is not the mostly widely used programming language only because people are lazy enough to avoid the laziness of Haskell
nbro 2017-03-03 05:46:46
well, not that funny
nbro 2017-03-03 05:46:49
:D
nbro 2017-03-03 05:47:20
lol
Sornaensis 2017-03-03 05:47:38
maerwald: you mean web frameworks? yesod is quite mature
maerwald 2017-03-03 05:51:19
ongy: http://tunes.org/~nef/logs/haskell/17.01.09 check the logs for "errno"
maerwald 2017-03-03 05:51:27
ircbrowse is down, no idea why
sm 2017-03-03 05:53:35
thread-safe current working directory has been a problem, also
maerwald 2017-03-03 05:53:49
sm: heh... are you referring to darcs? :P
sm 2017-03-03 05:54:08
we've seen it in darcsden, yup
maerwald 2017-03-03 05:54:19
anyway, for that there is an "easy" solution: absolute paths :P
sm 2017-03-03 05:54:29
just adding that to the list while we're pointing out flaws in haskell's gem-like perfection
Tuplanolla 2017-03-03 05:54:52
Haskell's what?
maerwald 2017-03-03 05:55:32
sm: however, I'm not actually sure that working directory thing is a problem with GHC/the runtime... could just be the way darcs/darcsden or libraries (mis-)handle things?
maerwald 2017-03-03 05:55:46
could even be Snap
sm 2017-03-03 05:56:28
it is a piece of state that's not thread-safe, IIRC
sm 2017-03-03 05:57:27
perhaps we have some process lib that handles it better now
kuribas 2017-03-03 05:58:38
Hi, I have a profiling graph of my library http://kuribas.hcoop.net/Overlap.html : http://kuribas.hcoop.net/graph.svg
kuribas 2017-03-03 05:59:08
Control.Monad.State.Class.modify seems to take a large chunck of the time, is there a way to optimize that?
kuribas 2017-03-03 05:59:31
Shouldn't ghc optimize it away?
Tuplanolla 2017-03-03 06:00:02
Is that state lazy, kuribas?
kuribas 2017-03-03 06:01:03
Tuplanolla: I think not...
Tuplanolla 2017-03-03 06:02:24
That would explain it.
kuribas 2017-03-03 06:02:48
Tuplanolla: why?
kuribas 2017-03-03 06:02:59
the algorithm is strict...
Tuplanolla 2017-03-03 06:04:02
Since `modify` does not evaluate its arguments.
Tuplanolla 2017-03-03 06:04:18
There's `modify'` for that.
kuribas 2017-03-03 06:05:37
right
kuribas 2017-03-03 06:07:05
what about modifying?
kuribas 2017-03-03 06:07:10
:t modifying
lambdabot 2017-03-03 06:07:13
MonadState s m => ASetter s s a b -> (a -> b) -> m ()
kuribas 2017-03-03 06:08:31
is there a strict version of modifying?
Tuplanolla 2017-03-03 06:08:59
@hoogle modifying'
lambdabot 2017-03-03 06:09:00
No results found
Tuplanolla 2017-03-03 06:09:05
Not reassuring.
fProgrammer 2017-03-03 06:09:23
quick question: I've a created a datatype using record syntax. What is the most efficient way to convert it to a map, where the accessor functions are key and the values are Map Values. For ex: http://lpaste.net/353181
Tuplanolla 2017-03-03 06:09:33
There may be some lens magic to get around this.
kuribas 2017-03-03 06:10:22
modifying l f = State.modify' (over l f)
kuribas 2017-03-03 06:10:30
erm modifying'
lyxia 2017-03-03 06:16:04
fProgrammer: Text and Int are different types so you can't put both of them in a map
kuribas 2017-03-03 06:18:41
perhaps I should try lens instead of microlens...
ongy 2017-03-03 06:22:20
is there a reason strerror is not exposed in haskell? I wanted to reuse the errno definitions for sending errors over sockets
hongminhee 2017-03-03 06:32:34
I got this error which is new to me. Do anyone know what does this mean?
hongminhee 2017-03-03 06:32:35
• Couldn't match type 'Constraint' with '*'
hongminhee 2017-03-03 06:32:35
Expected type: Proxy * (Target Nirum.Targets.Python.Python)
hongminhee 2017-03-03 06:32:35
Actual type: Proxy Constraint (Target Nirum.Targets.Python.Python)
lyxia 2017-03-03 06:34:44
this means you used a Proxy with the wrong type.
lyxia 2017-03-03 06:34:55
hongminhee: can you paste the offending code
hongminhee 2017-03-03 06:35:47
I'm actually using some TemplateHaskell now...
hongminhee 2017-03-03 06:37:51
github gist seems not to support directories
hongminhee 2017-03-03 06:37:54
https://gist.github.com/dahlia/e0b726810b90806a3e1c7791d7499c6d#file-nirum-targets-hs-L48
hongminhee 2017-03-03 06:38:19
That line is where the error comes from