Search Haskell Channel Logs

Friday, January 27, 2017

#haskell channel featuring pplorins, geekosaur, lambdabot, _sras_, mniip,

geekosaur 2017-01-27 20:11:27
lots of programs use Reader/ReaderT without using local. the main point is that ReaderT is faster if you aren't changing the state, since it doesn't have to arrange for new state to be propagated
pplorins 2017-01-27 20:18:01
hi all , a very newbie question: what's the difference between + and ++ ? I know + is used for mathmatic operation like +-*/ and ++ can be used for list operations , but is there something more important difference ?
geekosaur 2017-01-27 20:18:45
(+) is a typeclass method of Num, so any type with a Num instance can use it. (++) is specific to lists
pplorins 2017-01-27 20:20:02
great ! thanks a lot .
mniip 2017-01-27 20:30:27
pplorins, more generally the two are different functions
mniip 2017-01-27 20:30:33
like 'negate' and 'reverse'
pplorins 2017-01-27 20:39:38
@mniip thanks
lambdabot 2017-01-27 20:39:39
Unknown command, try @list
_sras_ 2017-01-27 20:43:41
Can I call a template haskell call from code generated using template haskell?